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§

fn meta(&self) -> &ErrorMetadata

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

Provided Methods§

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

Returns the error code if it’s available.

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

Returns the error message, if there is one.

Implementations on Foreign Types§

§

impl ProvideErrorMetadata for AssumeRoleError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for AssumeRoleWithSAMLError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for AssumeRoleWithWebIdentityError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for DecodeAuthorizationMessageError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for ExpiredTokenException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for GetAccessKeyInfoError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for GetCallerIdentityError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for GetFederationTokenError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for GetRoleCredentialsError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for GetSessionTokenError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for IdpCommunicationErrorException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for IdpRejectedClaimException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for InvalidAuthorizationMessageException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for InvalidIdentityTokenException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for InvalidRequestException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for ListAccountRolesError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for ListAccountsError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for LogoutError

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for MalformedPolicyDocumentException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for PackedPolicyTooLargeException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for RegionDisabledException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for ResourceNotFoundException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for TooManyRequestsException

§

fn meta(&self) -> &ErrorMetadata

§

impl ProvideErrorMetadata for UnauthorizedException

§

fn meta(&self) -> &ErrorMetadata

§

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

§

fn meta(&self) -> &ErrorMetadata

Implementors§

§

impl ProvideErrorMetadata for AbortMultipartUploadError

§

impl ProvideErrorMetadata for CompleteMultipartUploadError

§

impl ProvideErrorMetadata for CopyObjectError

§

impl ProvideErrorMetadata for CreateBucketError

§

impl ProvideErrorMetadata for CreateMultipartUploadError

§

impl ProvideErrorMetadata for DeleteBucketError

§

impl ProvideErrorMetadata for DeleteBucketAnalyticsConfigurationError

§

impl ProvideErrorMetadata for DeleteBucketCorsError

§

impl ProvideErrorMetadata for DeleteBucketEncryptionError

§

impl ProvideErrorMetadata for DeleteBucketIntelligentTieringConfigurationError

§

impl ProvideErrorMetadata for DeleteBucketInventoryConfigurationError

§

impl ProvideErrorMetadata for DeleteBucketLifecycleError

§

impl ProvideErrorMetadata for DeleteBucketMetricsConfigurationError

§

impl ProvideErrorMetadata for DeleteBucketOwnershipControlsError

§

impl ProvideErrorMetadata for DeleteBucketPolicyError

§

impl ProvideErrorMetadata for DeleteBucketReplicationError

§

impl ProvideErrorMetadata for DeleteBucketTaggingError

§

impl ProvideErrorMetadata for DeleteBucketWebsiteError

§

impl ProvideErrorMetadata for DeleteObjectError

§

impl ProvideErrorMetadata for DeleteObjectTaggingError

§

impl ProvideErrorMetadata for DeleteObjectsError

§

impl ProvideErrorMetadata for DeletePublicAccessBlockError

§

impl ProvideErrorMetadata for GetBucketAccelerateConfigurationError

§

impl ProvideErrorMetadata for GetBucketAclError

§

impl ProvideErrorMetadata for GetBucketAnalyticsConfigurationError

§

impl ProvideErrorMetadata for GetBucketCorsError

§

impl ProvideErrorMetadata for GetBucketEncryptionError

§

impl ProvideErrorMetadata for GetBucketIntelligentTieringConfigurationError

§

impl ProvideErrorMetadata for GetBucketInventoryConfigurationError

§

impl ProvideErrorMetadata for GetBucketLifecycleConfigurationError

§

impl ProvideErrorMetadata for GetBucketLocationError

§

impl ProvideErrorMetadata for GetBucketLoggingError

§

impl ProvideErrorMetadata for GetBucketMetricsConfigurationError

§

impl ProvideErrorMetadata for GetBucketNotificationConfigurationError

§

impl ProvideErrorMetadata for GetBucketOwnershipControlsError

§

impl ProvideErrorMetadata for GetBucketPolicyError

§

impl ProvideErrorMetadata for GetBucketPolicyStatusError

§

impl ProvideErrorMetadata for GetBucketReplicationError

§

impl ProvideErrorMetadata for GetBucketRequestPaymentError

§

impl ProvideErrorMetadata for GetBucketTaggingError

§

impl ProvideErrorMetadata for GetBucketVersioningError

§

impl ProvideErrorMetadata for GetBucketWebsiteError

§

impl ProvideErrorMetadata for GetObjectError

§

impl ProvideErrorMetadata for GetObjectAclError

§

impl ProvideErrorMetadata for GetObjectAttributesError

§

impl ProvideErrorMetadata for GetObjectLegalHoldError

§

impl ProvideErrorMetadata for GetObjectLockConfigurationError

§

impl ProvideErrorMetadata for GetObjectRetentionError

§

impl ProvideErrorMetadata for GetObjectTaggingError

§

impl ProvideErrorMetadata for GetObjectTorrentError

§

impl ProvideErrorMetadata for GetPublicAccessBlockError

§

impl ProvideErrorMetadata for HeadBucketError

§

impl ProvideErrorMetadata for HeadObjectError

§

impl ProvideErrorMetadata for ListBucketAnalyticsConfigurationsError

§

impl ProvideErrorMetadata for ListBucketIntelligentTieringConfigurationsError

§

impl ProvideErrorMetadata for ListBucketInventoryConfigurationsError

§

impl ProvideErrorMetadata for ListBucketMetricsConfigurationsError

§

impl ProvideErrorMetadata for ListBucketsError

§

impl ProvideErrorMetadata for ListMultipartUploadsError

§

impl ProvideErrorMetadata for ListObjectVersionsError

§

impl ProvideErrorMetadata for ListObjectsError

§

impl ProvideErrorMetadata for ListObjectsV2Error

§

impl ProvideErrorMetadata for ListPartsError

§

impl ProvideErrorMetadata for PutBucketAccelerateConfigurationError

§

impl ProvideErrorMetadata for PutBucketAclError

§

impl ProvideErrorMetadata for PutBucketAnalyticsConfigurationError

§

impl ProvideErrorMetadata for PutBucketCorsError

§

impl ProvideErrorMetadata for PutBucketEncryptionError

§

impl ProvideErrorMetadata for PutBucketIntelligentTieringConfigurationError

§

impl ProvideErrorMetadata for PutBucketInventoryConfigurationError

§

impl ProvideErrorMetadata for PutBucketLifecycleConfigurationError

§

impl ProvideErrorMetadata for PutBucketLoggingError

§

impl ProvideErrorMetadata for PutBucketMetricsConfigurationError

§

impl ProvideErrorMetadata for PutBucketNotificationConfigurationError

§

impl ProvideErrorMetadata for PutBucketOwnershipControlsError

§

impl ProvideErrorMetadata for PutBucketPolicyError

§

impl ProvideErrorMetadata for PutBucketReplicationError

§

impl ProvideErrorMetadata for PutBucketRequestPaymentError

§

impl ProvideErrorMetadata for PutBucketTaggingError

§

impl ProvideErrorMetadata for PutBucketVersioningError

§

impl ProvideErrorMetadata for PutBucketWebsiteError

§

impl ProvideErrorMetadata for PutObjectError

§

impl ProvideErrorMetadata for PutObjectAclError

§

impl ProvideErrorMetadata for PutObjectLegalHoldError

§

impl ProvideErrorMetadata for PutObjectLockConfigurationError

§

impl ProvideErrorMetadata for PutObjectRetentionError

§

impl ProvideErrorMetadata for PutObjectTaggingError

§

impl ProvideErrorMetadata for PutPublicAccessBlockError

§

impl ProvideErrorMetadata for RestoreObjectError

§

impl ProvideErrorMetadata for SelectObjectContentError

§

impl ProvideErrorMetadata for UploadPartError

§

impl ProvideErrorMetadata for UploadPartCopyError

§

impl ProvideErrorMetadata for WriteGetObjectResponseError

§

impl ProvideErrorMetadata for SelectObjectContentEventStreamError

§

impl ProvideErrorMetadata for BucketAlreadyExists

§

impl ProvideErrorMetadata for BucketAlreadyOwnedByYou

§

impl ProvideErrorMetadata for InvalidObjectState

§

impl ProvideErrorMetadata for NoSuchBucket

§

impl ProvideErrorMetadata for NoSuchKey

§

impl ProvideErrorMetadata for NoSuchUpload

§

impl ProvideErrorMetadata for NotFound

§

impl ProvideErrorMetadata for ObjectAlreadyInActiveTierError

§

impl ProvideErrorMetadata for ObjectNotInActiveTierError

§

impl ProvideErrorMetadata for ErrorMetadata

§

impl ProvideErrorMetadata for Unhandled