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 AWS 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)
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)>
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<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<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<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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CopyBackupToRegionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateHsmError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteBackupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteHsmError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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<DescribeBackupsError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeBackupsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeClustersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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<InitializeClusterError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<InitializeClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ModifyBackupAttributesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ModifyClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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<RestoreBackupError, R>> for Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<RestoreBackupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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 Errorwhere
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,
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.
Auto Trait Implementations§
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>
Creates a shared type from an unshared type.