Enum aws_sdk_keyspaces::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 access permissions to perform this action.
ConflictException(ConflictException)
Amazon Keyspaces couldn't complete the requested action. This error may occur if you try to perform an action and the same or a different action is already in progress, or if you try to create a resource that already exists.
InternalServerException(InternalServerException)
Amazon Keyspaces was unable to fully process this request because of an internal server error.
ResourceNotFoundException(ResourceNotFoundException)
The operation tried to access a keyspace or table that doesn't exist. The resource might not be specified correctly, or its status might not be ACTIVE
.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The operation exceeded the service quota for this resource. For more information on service quotas, see Quotas in the Amazon Keyspaces Developer Guide.
ValidationException(ValidationException)
The operation failed due to an invalid or malformed request.
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<CreateKeyspaceError> for Error
impl From<CreateKeyspaceError> for Error
source§fn from(err: CreateKeyspaceError) -> Self
fn from(err: CreateKeyspaceError) -> Self
source§impl From<CreateTableError> for Error
impl From<CreateTableError> for Error
source§fn from(err: CreateTableError) -> Self
fn from(err: CreateTableError) -> Self
source§impl From<DeleteKeyspaceError> for Error
impl From<DeleteKeyspaceError> for Error
source§fn from(err: DeleteKeyspaceError) -> Self
fn from(err: DeleteKeyspaceError) -> Self
source§impl From<DeleteTableError> for Error
impl From<DeleteTableError> for Error
source§fn from(err: DeleteTableError) -> Self
fn from(err: DeleteTableError) -> Self
source§impl From<GetKeyspaceError> for Error
impl From<GetKeyspaceError> for Error
source§fn from(err: GetKeyspaceError) -> Self
fn from(err: GetKeyspaceError) -> Self
source§impl From<GetTableAutoScalingSettingsError> for Error
impl From<GetTableAutoScalingSettingsError> for Error
source§fn from(err: GetTableAutoScalingSettingsError) -> Self
fn from(err: GetTableAutoScalingSettingsError) -> Self
source§impl From<GetTableError> for Error
impl From<GetTableError> for Error
source§fn from(err: GetTableError) -> Self
fn from(err: GetTableError) -> Self
source§impl From<ListKeyspacesError> for Error
impl From<ListKeyspacesError> for Error
source§fn from(err: ListKeyspacesError) -> Self
fn from(err: ListKeyspacesError) -> Self
source§impl From<ListTablesError> for Error
impl From<ListTablesError> for Error
source§fn from(err: ListTablesError) -> Self
fn from(err: ListTablesError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl From<RestoreTableError> for Error
impl From<RestoreTableError> for Error
source§fn from(err: RestoreTableError) -> Self
fn from(err: RestoreTableError) -> Self
source§impl<R> From<SdkError<CreateKeyspaceError, R>> for Error
impl<R> From<SdkError<CreateKeyspaceError, R>> for Error
source§fn from(err: SdkError<CreateKeyspaceError, R>) -> Self
fn from(err: SdkError<CreateKeyspaceError, R>) -> Self
source§impl<R> From<SdkError<CreateTableError, R>> for Error
impl<R> From<SdkError<CreateTableError, R>> for Error
source§fn from(err: SdkError<CreateTableError, R>) -> Self
fn from(err: SdkError<CreateTableError, R>) -> Self
source§impl<R> From<SdkError<DeleteKeyspaceError, R>> for Error
impl<R> From<SdkError<DeleteKeyspaceError, R>> for Error
source§fn from(err: SdkError<DeleteKeyspaceError, R>) -> Self
fn from(err: SdkError<DeleteKeyspaceError, R>) -> Self
source§impl<R> From<SdkError<DeleteTableError, R>> for Error
impl<R> From<SdkError<DeleteTableError, R>> for Error
source§fn from(err: SdkError<DeleteTableError, R>) -> Self
fn from(err: SdkError<DeleteTableError, R>) -> Self
source§impl<R> From<SdkError<GetKeyspaceError, R>> for Error
impl<R> From<SdkError<GetKeyspaceError, R>> for Error
source§fn from(err: SdkError<GetKeyspaceError, R>) -> Self
fn from(err: SdkError<GetKeyspaceError, R>) -> Self
source§impl<R> From<SdkError<GetTableAutoScalingSettingsError, R>> for Error
impl<R> From<SdkError<GetTableAutoScalingSettingsError, R>> for Error
source§fn from(err: SdkError<GetTableAutoScalingSettingsError, R>) -> Self
fn from(err: SdkError<GetTableAutoScalingSettingsError, R>) -> Self
source§impl<R> From<SdkError<GetTableError, R>> for Error
impl<R> From<SdkError<GetTableError, R>> for Error
source§fn from(err: SdkError<GetTableError, R>) -> Self
fn from(err: SdkError<GetTableError, R>) -> Self
source§impl<R> From<SdkError<ListKeyspacesError, R>> for Error
impl<R> From<SdkError<ListKeyspacesError, R>> for Error
source§fn from(err: SdkError<ListKeyspacesError, R>) -> Self
fn from(err: SdkError<ListKeyspacesError, R>) -> Self
source§impl<R> From<SdkError<ListTablesError, R>> for Error
impl<R> From<SdkError<ListTablesError, R>> for Error
source§fn from(err: SdkError<ListTablesError, R>) -> Self
fn from(err: SdkError<ListTablesError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
source§impl<R> From<SdkError<RestoreTableError, R>> for Error
impl<R> From<SdkError<RestoreTableError, R>> for Error
source§fn from(err: SdkError<RestoreTableError, R>) -> Self
fn from(err: SdkError<RestoreTableError, R>) -> Self
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
source§impl<R> From<SdkError<UpdateTableError, R>> for Error
impl<R> From<SdkError<UpdateTableError, R>> for Error
source§fn from(err: SdkError<UpdateTableError, R>) -> Self
fn from(err: SdkError<UpdateTableError, R>) -> Self
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UpdateTableError> for Error
impl From<UpdateTableError> for Error
source§fn from(err: UpdateTableError) -> Self
fn from(err: UpdateTableError) -> 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