aws_sdk_secretsmanager::error

Trait ProvideErrorMetadata

Source
pub trait ProvideErrorMetadata {
    // Required method
    fn meta(&self) -> &ErrorMetadata;

    // Provided methods
    fn code(&self) -> Option<&str> { ... }
    fn message(&self) -> Option<&str> { ... }
}
Expand description

Trait to retrieve error metadata from a result

Required Methods§

Source

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.

Provided Methods§

Source

fn code(&self) -> Option<&str>

Returns the error code if it’s available.

Source

fn message(&self) -> Option<&str>

Returns the error message, if there is one.

Implementations on Foreign Types§

Source§

impl<E, R> ProvideErrorMetadata for SdkError<E, R>

Implementors§

Source§

impl ProvideErrorMetadata for Error

Source§

impl ProvideErrorMetadata for BatchGetSecretValueError

Source§

impl ProvideErrorMetadata for CancelRotateSecretError

Source§

impl ProvideErrorMetadata for CreateSecretError

Source§

impl ProvideErrorMetadata for DeleteResourcePolicyError

Source§

impl ProvideErrorMetadata for DeleteSecretError

Source§

impl ProvideErrorMetadata for DescribeSecretError

Source§

impl ProvideErrorMetadata for GetRandomPasswordError

Source§

impl ProvideErrorMetadata for GetResourcePolicyError

Source§

impl ProvideErrorMetadata for GetSecretValueError

Source§

impl ProvideErrorMetadata for ListSecretVersionIdsError

Source§

impl ProvideErrorMetadata for ListSecretsError

Source§

impl ProvideErrorMetadata for PutResourcePolicyError

Source§

impl ProvideErrorMetadata for PutSecretValueError

Source§

impl ProvideErrorMetadata for RemoveRegionsFromReplicationError

Source§

impl ProvideErrorMetadata for ReplicateSecretToRegionsError

Source§

impl ProvideErrorMetadata for RestoreSecretError

Source§

impl ProvideErrorMetadata for RotateSecretError

Source§

impl ProvideErrorMetadata for StopReplicationToReplicaError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateSecretError

Source§

impl ProvideErrorMetadata for UpdateSecretVersionStageError

Source§

impl ProvideErrorMetadata for ValidateResourcePolicyError

Source§

impl ProvideErrorMetadata for DecryptionFailure

Source§

impl ProvideErrorMetadata for EncryptionFailure

Source§

impl ProvideErrorMetadata for InternalServiceError

Source§

impl ProvideErrorMetadata for InvalidNextTokenException

Source§

impl ProvideErrorMetadata for InvalidParameterException

Source§

impl ProvideErrorMetadata for InvalidRequestException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for MalformedPolicyDocumentException

Source§

impl ProvideErrorMetadata for PreconditionNotMetException

Source§

impl ProvideErrorMetadata for PublicPolicyException

Source§

impl ProvideErrorMetadata for ResourceExistsException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ErrorMetadata