Enum aws_sdk_cloudhsmv2::Error
source · #[non_exhaustive]pub enum Error {
CloudHsmAccessDeniedException(CloudHsmAccessDeniedException),
CloudHsmInternalFailureException(CloudHsmInternalFailureException),
CloudHsmInvalidRequestException(CloudHsmInvalidRequestException),
CloudHsmResourceNotFoundException(CloudHsmResourceNotFoundException),
CloudHsmServiceException(CloudHsmServiceException),
CloudHsmTagException(CloudHsmTagException),
Unhandled(Unhandled),
}Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CloudHsmAccessDeniedException(CloudHsmAccessDeniedException)
The request was rejected because the requester does not have permission to perform the requested operation.
CloudHsmInternalFailureException(CloudHsmInternalFailureException)
The request was rejected because of an CloudHSM internal failure. The request can be retried.
CloudHsmInvalidRequestException(CloudHsmInvalidRequestException)
The request was rejected because it is not a valid request.
CloudHsmResourceNotFoundException(CloudHsmResourceNotFoundException)
The request was rejected because it refers to a resource that cannot be found.
CloudHsmServiceException(CloudHsmServiceException)
The request was rejected because an error occurred.
CloudHsmTagException(CloudHsmTagException)
The request was rejected because of a tagging failure. Verify the tag conditions in all applicable policies, and then retry the request.
Unhandled(Unhandled)
👎Deprecated: Matching
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Converts to this type from the input type.
source§impl From<CopyBackupToRegionError> for Error
impl From<CopyBackupToRegionError> for Error
source§fn from(err: CopyBackupToRegionError) -> Self
fn from(err: CopyBackupToRegionError) -> Self
Converts to this type from the input type.
source§impl From<CreateClusterError> for Error
impl From<CreateClusterError> for Error
source§fn from(err: CreateClusterError) -> Self
fn from(err: CreateClusterError) -> Self
Converts to this type from the input type.
source§impl From<CreateHsmError> for Error
impl From<CreateHsmError> for Error
source§fn from(err: CreateHsmError) -> Self
fn from(err: CreateHsmError) -> Self
Converts to this type from the input type.
source§impl From<DeleteBackupError> for Error
impl From<DeleteBackupError> for Error
source§fn from(err: DeleteBackupError) -> Self
fn from(err: DeleteBackupError) -> Self
Converts to this type from the input type.
source§impl From<DeleteClusterError> for Error
impl From<DeleteClusterError> for Error
source§fn from(err: DeleteClusterError) -> Self
fn from(err: DeleteClusterError) -> Self
Converts to this type from the input type.
source§impl From<DeleteHsmError> for Error
impl From<DeleteHsmError> for Error
source§fn from(err: DeleteHsmError) -> Self
fn from(err: DeleteHsmError) -> Self
Converts to this type from the input type.
source§impl From<DeleteResourcePolicyError> for Error
impl From<DeleteResourcePolicyError> for Error
source§fn from(err: DeleteResourcePolicyError) -> Self
fn from(err: DeleteResourcePolicyError) -> Self
Converts to this type from the input type.
source§impl From<DescribeBackupsError> for Error
impl From<DescribeBackupsError> for Error
source§fn from(err: DescribeBackupsError) -> Self
fn from(err: DescribeBackupsError) -> Self
Converts to this type from the input type.
source§impl From<DescribeClustersError> for Error
impl From<DescribeClustersError> for Error
source§fn from(err: DescribeClustersError) -> Self
fn from(err: DescribeClustersError) -> Self
Converts to this type from the input type.
source§impl From<GetResourcePolicyError> for Error
impl From<GetResourcePolicyError> for Error
source§fn from(err: GetResourcePolicyError) -> Self
fn from(err: GetResourcePolicyError) -> Self
Converts to this type from the input type.
source§impl From<InitializeClusterError> for Error
impl From<InitializeClusterError> for Error
source§fn from(err: InitializeClusterError) -> Self
fn from(err: InitializeClusterError) -> Self
Converts to this type from the input type.
source§impl From<ListTagsError> for Error
impl From<ListTagsError> for Error
source§fn from(err: ListTagsError) -> Self
fn from(err: ListTagsError) -> Self
Converts to this type from the input type.
source§impl From<ModifyBackupAttributesError> for Error
impl From<ModifyBackupAttributesError> for Error
source§fn from(err: ModifyBackupAttributesError) -> Self
fn from(err: ModifyBackupAttributesError) -> Self
Converts to this type from the input type.
source§impl From<ModifyClusterError> for Error
impl From<ModifyClusterError> for Error
source§fn from(err: ModifyClusterError) -> Self
fn from(err: ModifyClusterError) -> Self
Converts to this type from the input type.
source§impl From<PutResourcePolicyError> for Error
impl From<PutResourcePolicyError> for Error
source§fn from(err: PutResourcePolicyError) -> Self
fn from(err: PutResourcePolicyError) -> Self
Converts to this type from the input type.
source§impl From<RestoreBackupError> for Error
impl From<RestoreBackupError> for Error
source§fn from(err: RestoreBackupError) -> Self
fn from(err: RestoreBackupError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CopyBackupToRegionError, R>> for Error
impl<R> From<SdkError<CopyBackupToRegionError, R>> for Error
source§fn from(err: SdkError<CopyBackupToRegionError, R>) -> Self
fn from(err: SdkError<CopyBackupToRegionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateClusterError, R>> for Error
impl<R> From<SdkError<CreateClusterError, R>> for Error
source§fn from(err: SdkError<CreateClusterError, R>) -> Self
fn from(err: SdkError<CreateClusterError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateHsmError, R>> for Error
impl<R> From<SdkError<CreateHsmError, R>> for Error
source§fn from(err: SdkError<CreateHsmError, R>) -> Self
fn from(err: SdkError<CreateHsmError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteBackupError, R>> for Error
impl<R> From<SdkError<DeleteBackupError, R>> for Error
source§fn from(err: SdkError<DeleteBackupError, R>) -> Self
fn from(err: SdkError<DeleteBackupError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteClusterError, R>> for Error
impl<R> From<SdkError<DeleteClusterError, R>> for Error
source§fn from(err: SdkError<DeleteClusterError, R>) -> Self
fn from(err: SdkError<DeleteClusterError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteHsmError, R>> for Error
impl<R> From<SdkError<DeleteHsmError, R>> for Error
source§fn from(err: SdkError<DeleteHsmError, R>) -> Self
fn from(err: SdkError<DeleteHsmError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
impl<R> From<SdkError<DeleteResourcePolicyError, R>> for Error
source§fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
fn from(err: SdkError<DeleteResourcePolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeBackupsError, R>> for Error
impl<R> From<SdkError<DescribeBackupsError, R>> for Error
source§fn from(err: SdkError<DescribeBackupsError, R>) -> Self
fn from(err: SdkError<DescribeBackupsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeClustersError, R>> for Error
impl<R> From<SdkError<DescribeClustersError, R>> for Error
source§fn from(err: SdkError<DescribeClustersError, R>) -> Self
fn from(err: SdkError<DescribeClustersError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetResourcePolicyError, R>> for Error
impl<R> From<SdkError<GetResourcePolicyError, R>> for Error
source§fn from(err: SdkError<GetResourcePolicyError, R>) -> Self
fn from(err: SdkError<GetResourcePolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<InitializeClusterError, R>> for Error
impl<R> From<SdkError<InitializeClusterError, R>> for Error
source§fn from(err: SdkError<InitializeClusterError, R>) -> Self
fn from(err: SdkError<InitializeClusterError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListTagsError, R>> for Error
impl<R> From<SdkError<ListTagsError, R>> for Error
source§fn from(err: SdkError<ListTagsError, R>) -> Self
fn from(err: SdkError<ListTagsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ModifyBackupAttributesError, R>> for Error
impl<R> From<SdkError<ModifyBackupAttributesError, R>> for Error
source§fn from(err: SdkError<ModifyBackupAttributesError, R>) -> Self
fn from(err: SdkError<ModifyBackupAttributesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ModifyClusterError, R>> for Error
impl<R> From<SdkError<ModifyClusterError, R>> for Error
source§fn from(err: SdkError<ModifyClusterError, R>) -> Self
fn from(err: SdkError<ModifyClusterError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
impl<R> From<SdkError<PutResourcePolicyError, R>> for Error
source§fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
fn from(err: SdkError<PutResourcePolicyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<RestoreBackupError, R>> for Error
impl<R> From<SdkError<RestoreBackupError, R>> for Error
source§fn from(err: SdkError<RestoreBackupError, R>) -> Self
fn from(err: SdkError<RestoreBackupError, R>) -> Self
Converts to this type from the input type.
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
Converts to this type from the input type.
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
Converts to this type from the input type.
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Converts to this type from the input type.
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.