Enum aws_sdk_supportapp::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You don't have sufficient permission to perform this action.
ConflictException(ConflictException)
Your request has a conflict. For example, you might receive this error if you try the following:
-
Add, update, or delete a Slack channel configuration before you add a Slack workspace to your Amazon Web Services account.
-
Add a Slack channel configuration that already exists in your Amazon Web Services account.
-
Delete a Slack channel configuration for a live chat channel.
-
Delete a Slack workspace from your Amazon Web Services account that has an active live chat channel.
-
Call the
RegisterSlackWorkspaceForOrganizationAPI from an Amazon Web Services account that doesn't belong to an organization. -
Call the
RegisterSlackWorkspaceForOrganizationAPI from a member account, but the management account hasn't registered that workspace yet for the organization.
InternalServerException(InternalServerException)
We can’t process your request right now because of a server issue. Try again later.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource is missing or doesn't exist, such as an account alias, Slack channel configuration, or Slack workspace configuration.
ServiceQuotaExceededException(ServiceQuotaExceededException)
Your Service Quotas request exceeds the quota for the service. For example, your Service Quotas request to Amazon Web Services Support App might exceed the maximum number of workspaces or channels per account, or the maximum number of accounts per Slack channel.
ValidationException(ValidationException)
Your request input doesn't meet the constraints that the Amazon Web Services Support App specifies.
Unhandled(Unhandled)
Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateSlackChannelConfigurationError> for Error
impl From<CreateSlackChannelConfigurationError> for Error
source§fn from(err: CreateSlackChannelConfigurationError) -> Self
fn from(err: CreateSlackChannelConfigurationError) -> Self
source§impl From<DeleteAccountAliasError> for Error
impl From<DeleteAccountAliasError> for Error
source§fn from(err: DeleteAccountAliasError) -> Self
fn from(err: DeleteAccountAliasError) -> Self
source§impl From<DeleteSlackChannelConfigurationError> for Error
impl From<DeleteSlackChannelConfigurationError> for Error
source§fn from(err: DeleteSlackChannelConfigurationError) -> Self
fn from(err: DeleteSlackChannelConfigurationError) -> Self
source§impl From<DeleteSlackWorkspaceConfigurationError> for Error
impl From<DeleteSlackWorkspaceConfigurationError> for Error
source§fn from(err: DeleteSlackWorkspaceConfigurationError) -> Self
fn from(err: DeleteSlackWorkspaceConfigurationError) -> Self
source§impl From<GetAccountAliasError> for Error
impl From<GetAccountAliasError> for Error
source§fn from(err: GetAccountAliasError) -> Self
fn from(err: GetAccountAliasError) -> Self
source§impl From<ListSlackChannelConfigurationsError> for Error
impl From<ListSlackChannelConfigurationsError> for Error
source§fn from(err: ListSlackChannelConfigurationsError) -> Self
fn from(err: ListSlackChannelConfigurationsError) -> Self
source§impl From<ListSlackWorkspaceConfigurationsError> for Error
impl From<ListSlackWorkspaceConfigurationsError> for Error
source§fn from(err: ListSlackWorkspaceConfigurationsError) -> Self
fn from(err: ListSlackWorkspaceConfigurationsError) -> Self
source§impl From<PutAccountAliasError> for Error
impl From<PutAccountAliasError> for Error
source§fn from(err: PutAccountAliasError) -> Self
fn from(err: PutAccountAliasError) -> Self
source§impl From<RegisterSlackWorkspaceForOrganizationError> for Error
impl From<RegisterSlackWorkspaceForOrganizationError> for Error
source§fn from(err: RegisterSlackWorkspaceForOrganizationError) -> Self
fn from(err: RegisterSlackWorkspaceForOrganizationError) -> Self
source§impl<R> From<SdkError<CreateSlackChannelConfigurationError, R>> for Error
impl<R> From<SdkError<CreateSlackChannelConfigurationError, R>> for Error
source§fn from(err: SdkError<CreateSlackChannelConfigurationError, R>) -> Self
fn from(err: SdkError<CreateSlackChannelConfigurationError, R>) -> Self
source§impl<R> From<SdkError<DeleteAccountAliasError, R>> for Error
impl<R> From<SdkError<DeleteAccountAliasError, R>> for Error
source§fn from(err: SdkError<DeleteAccountAliasError, R>) -> Self
fn from(err: SdkError<DeleteAccountAliasError, R>) -> Self
source§impl<R> From<SdkError<DeleteSlackChannelConfigurationError, R>> for Error
impl<R> From<SdkError<DeleteSlackChannelConfigurationError, R>> for Error
source§fn from(err: SdkError<DeleteSlackChannelConfigurationError, R>) -> Self
fn from(err: SdkError<DeleteSlackChannelConfigurationError, R>) -> Self
source§impl<R> From<SdkError<DeleteSlackWorkspaceConfigurationError, R>> for Error
impl<R> From<SdkError<DeleteSlackWorkspaceConfigurationError, R>> for Error
source§fn from(err: SdkError<DeleteSlackWorkspaceConfigurationError, R>) -> Self
fn from(err: SdkError<DeleteSlackWorkspaceConfigurationError, R>) -> Self
source§impl<R> From<SdkError<GetAccountAliasError, R>> for Error
impl<R> From<SdkError<GetAccountAliasError, R>> for Error
source§fn from(err: SdkError<GetAccountAliasError, R>) -> Self
fn from(err: SdkError<GetAccountAliasError, R>) -> Self
source§impl<R> From<SdkError<ListSlackChannelConfigurationsError, R>> for Error
impl<R> From<SdkError<ListSlackChannelConfigurationsError, R>> for Error
source§fn from(err: SdkError<ListSlackChannelConfigurationsError, R>) -> Self
fn from(err: SdkError<ListSlackChannelConfigurationsError, R>) -> Self
source§impl<R> From<SdkError<ListSlackWorkspaceConfigurationsError, R>> for Error
impl<R> From<SdkError<ListSlackWorkspaceConfigurationsError, R>> for Error
source§fn from(err: SdkError<ListSlackWorkspaceConfigurationsError, R>) -> Self
fn from(err: SdkError<ListSlackWorkspaceConfigurationsError, R>) -> Self
source§impl<R> From<SdkError<PutAccountAliasError, R>> for Error
impl<R> From<SdkError<PutAccountAliasError, R>> for Error
source§fn from(err: SdkError<PutAccountAliasError, R>) -> Self
fn from(err: SdkError<PutAccountAliasError, R>) -> Self
source§impl<R> From<SdkError<RegisterSlackWorkspaceForOrganizationError, R>> for Error
impl<R> From<SdkError<RegisterSlackWorkspaceForOrganizationError, R>> for Error
source§fn from(err: SdkError<RegisterSlackWorkspaceForOrganizationError, R>) -> Self
fn from(err: SdkError<RegisterSlackWorkspaceForOrganizationError, R>) -> Self
source§impl<R> From<SdkError<UpdateSlackChannelConfigurationError, R>> for Error
impl<R> From<SdkError<UpdateSlackChannelConfigurationError, R>> for Error
source§fn from(err: SdkError<UpdateSlackChannelConfigurationError, R>) -> Self
fn from(err: SdkError<UpdateSlackChannelConfigurationError, R>) -> Self
source§impl From<UpdateSlackChannelConfigurationError> for Error
impl From<UpdateSlackChannelConfigurationError> for Error
source§fn from(err: UpdateSlackChannelConfigurationError) -> Self
fn from(err: UpdateSlackChannelConfigurationError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more