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