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 CancelKeyDeletionError

source§

impl ProvideErrorMetadata for ConnectCustomKeyStoreError

source§

impl ProvideErrorMetadata for CreateAliasError

source§

impl ProvideErrorMetadata for CreateCustomKeyStoreError

source§

impl ProvideErrorMetadata for CreateGrantError

source§

impl ProvideErrorMetadata for CreateKeyError

source§

impl ProvideErrorMetadata for DecryptError

source§

impl ProvideErrorMetadata for DeleteAliasError

source§

impl ProvideErrorMetadata for DeleteCustomKeyStoreError

source§

impl ProvideErrorMetadata for DeleteImportedKeyMaterialError

source§

impl ProvideErrorMetadata for DescribeCustomKeyStoresError

source§

impl ProvideErrorMetadata for DescribeKeyError

source§

impl ProvideErrorMetadata for DisableKeyError

source§

impl ProvideErrorMetadata for DisableKeyRotationError

source§

impl ProvideErrorMetadata for DisconnectCustomKeyStoreError

source§

impl ProvideErrorMetadata for EnableKeyError

source§

impl ProvideErrorMetadata for EnableKeyRotationError

source§

impl ProvideErrorMetadata for EncryptError

source§

impl ProvideErrorMetadata for GenerateDataKeyError

source§

impl ProvideErrorMetadata for GenerateDataKeyPairError

source§

impl ProvideErrorMetadata for GenerateDataKeyPairWithoutPlaintextError

source§

impl ProvideErrorMetadata for GenerateDataKeyWithoutPlaintextError

source§

impl ProvideErrorMetadata for GenerateMacError

source§

impl ProvideErrorMetadata for GenerateRandomError

source§

impl ProvideErrorMetadata for GetKeyPolicyError

source§

impl ProvideErrorMetadata for GetKeyRotationStatusError

source§

impl ProvideErrorMetadata for GetParametersForImportError

source§

impl ProvideErrorMetadata for GetPublicKeyError

source§

impl ProvideErrorMetadata for ImportKeyMaterialError

source§

impl ProvideErrorMetadata for ListAliasesError

source§

impl ProvideErrorMetadata for ListGrantsError

source§

impl ProvideErrorMetadata for ListKeyPoliciesError

source§

impl ProvideErrorMetadata for ListKeysError

source§

impl ProvideErrorMetadata for ListResourceTagsError

source§

impl ProvideErrorMetadata for ListRetirableGrantsError

source§

impl ProvideErrorMetadata for PutKeyPolicyError

source§

impl ProvideErrorMetadata for ReEncryptError

source§

impl ProvideErrorMetadata for ReplicateKeyError

source§

impl ProvideErrorMetadata for RetireGrantError

source§

impl ProvideErrorMetadata for RevokeGrantError

source§

impl ProvideErrorMetadata for ScheduleKeyDeletionError

source§

impl ProvideErrorMetadata for SignError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateAliasError

source§

impl ProvideErrorMetadata for UpdateCustomKeyStoreError

source§

impl ProvideErrorMetadata for UpdateKeyDescriptionError

source§

impl ProvideErrorMetadata for UpdatePrimaryRegionError

source§

impl ProvideErrorMetadata for VerifyError

source§

impl ProvideErrorMetadata for VerifyMacError

source§

impl ProvideErrorMetadata for AlreadyExistsException

source§

impl ProvideErrorMetadata for CloudHsmClusterInUseException

source§

impl ProvideErrorMetadata for CloudHsmClusterInvalidConfigurationException

source§

impl ProvideErrorMetadata for CloudHsmClusterNotActiveException

source§

impl ProvideErrorMetadata for CloudHsmClusterNotFoundException

source§

impl ProvideErrorMetadata for CloudHsmClusterNotRelatedException

source§

impl ProvideErrorMetadata for CustomKeyStoreHasCmKsException

source§

impl ProvideErrorMetadata for CustomKeyStoreInvalidStateException

source§

impl ProvideErrorMetadata for CustomKeyStoreNameInUseException

source§

impl ProvideErrorMetadata for CustomKeyStoreNotFoundException

source§

impl ProvideErrorMetadata for DependencyTimeoutException

source§

impl ProvideErrorMetadata for DisabledException

source§

impl ProvideErrorMetadata for DryRunOperationException

source§

impl ProvideErrorMetadata for ExpiredImportTokenException

source§

impl ProvideErrorMetadata for IncorrectKeyException

source§

impl ProvideErrorMetadata for IncorrectKeyMaterialException

source§

impl ProvideErrorMetadata for IncorrectTrustAnchorException

source§

impl ProvideErrorMetadata for InvalidAliasNameException

source§

impl ProvideErrorMetadata for InvalidArnException

source§

impl ProvideErrorMetadata for InvalidCiphertextException

source§

impl ProvideErrorMetadata for InvalidGrantIdException

source§

impl ProvideErrorMetadata for InvalidGrantTokenException

source§

impl ProvideErrorMetadata for InvalidImportTokenException

source§

impl ProvideErrorMetadata for InvalidKeyUsageException

source§

impl ProvideErrorMetadata for InvalidMarkerException

source§

impl ProvideErrorMetadata for KeyUnavailableException

source§

impl ProvideErrorMetadata for KmsInternalException

source§

impl ProvideErrorMetadata for KmsInvalidMacException

source§

impl ProvideErrorMetadata for KmsInvalidSignatureException

source§

impl ProvideErrorMetadata for KmsInvalidStateException

source§

impl ProvideErrorMetadata for LimitExceededException

source§

impl ProvideErrorMetadata for MalformedPolicyDocumentException

source§

impl ProvideErrorMetadata for NotFoundException

source§

impl ProvideErrorMetadata for TagException

source§

impl ProvideErrorMetadata for UnsupportedOperationException

source§

impl ProvideErrorMetadata for XksKeyAlreadyInUseException

source§

impl ProvideErrorMetadata for XksKeyInvalidConfigurationException

source§

impl ProvideErrorMetadata for XksKeyNotFoundException

source§

impl ProvideErrorMetadata for XksProxyIncorrectAuthenticationCredentialException

source§

impl ProvideErrorMetadata for XksProxyInvalidConfigurationException

source§

impl ProvideErrorMetadata for XksProxyInvalidResponseException

source§

impl ProvideErrorMetadata for XksProxyUriEndpointInUseException

source§

impl ProvideErrorMetadata for XksProxyUriInUseException

source§

impl ProvideErrorMetadata for XksProxyUriUnreachableException

source§

impl ProvideErrorMetadata for XksProxyVpcEndpointServiceInUseException

source§

impl ProvideErrorMetadata for XksProxyVpcEndpointServiceInvalidConfigurationException

source§

impl ProvideErrorMetadata for XksProxyVpcEndpointServiceNotFoundException

source§

impl ProvideErrorMetadata for ErrorMetadata