Struct aws_sdk_kms::error::SignError
source · [−]#[non_exhaustive]pub struct SignError {
pub kind: SignErrorKind,
/* private fields */
}Expand description
Error type for the Sign operation.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: SignErrorKindKind of error that occurred.
Implementations
sourceimpl SignError
impl SignError
sourcepub fn new(kind: SignErrorKind, meta: Error) -> Self
pub fn new(kind: SignErrorKind, meta: Error) -> Self
Creates a new SignError.
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the SignError::Unhandled variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the SignError::Unhandled variant from a aws_smithy_types::Error.
sourcepub fn meta(&self) -> &Error
pub fn meta(&self) -> &Error
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the request ID if it’s available.
sourcepub fn is_dependency_timeout_exception(&self) -> bool
pub fn is_dependency_timeout_exception(&self) -> bool
Returns true if the error kind is SignErrorKind::DependencyTimeoutException.
sourcepub fn is_disabled_exception(&self) -> bool
pub fn is_disabled_exception(&self) -> bool
Returns true if the error kind is SignErrorKind::DisabledException.
sourcepub fn is_invalid_grant_token_exception(&self) -> bool
pub fn is_invalid_grant_token_exception(&self) -> bool
Returns true if the error kind is SignErrorKind::InvalidGrantTokenException.
sourcepub fn is_invalid_key_usage_exception(&self) -> bool
pub fn is_invalid_key_usage_exception(&self) -> bool
Returns true if the error kind is SignErrorKind::InvalidKeyUsageException.
Returns true if the error kind is SignErrorKind::KeyUnavailableException.
sourcepub fn is_kms_internal_exception(&self) -> bool
pub fn is_kms_internal_exception(&self) -> bool
Returns true if the error kind is SignErrorKind::KmsInternalException.
sourcepub fn is_kms_invalid_state_exception(&self) -> bool
pub fn is_kms_invalid_state_exception(&self) -> bool
Returns true if the error kind is SignErrorKind::KmsInvalidStateException.
sourcepub fn is_not_found_exception(&self) -> bool
pub fn is_not_found_exception(&self) -> bool
Returns true if the error kind is SignErrorKind::NotFoundException.