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 ConfigureLogsError

source§

impl ProvideErrorMetadata for CreateAssetError

source§

impl ProvideErrorMetadata for CreatePackagingConfigurationError

source§

impl ProvideErrorMetadata for CreatePackagingGroupError

source§

impl ProvideErrorMetadata for DeleteAssetError

source§

impl ProvideErrorMetadata for DeletePackagingConfigurationError

source§

impl ProvideErrorMetadata for DeletePackagingGroupError

source§

impl ProvideErrorMetadata for DescribeAssetError

source§

impl ProvideErrorMetadata for DescribePackagingConfigurationError

source§

impl ProvideErrorMetadata for DescribePackagingGroupError

source§

impl ProvideErrorMetadata for ListAssetsError

source§

impl ProvideErrorMetadata for ListPackagingConfigurationsError

source§

impl ProvideErrorMetadata for ListPackagingGroupsError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdatePackagingGroupError

source§

impl ProvideErrorMetadata for ForbiddenException

source§

impl ProvideErrorMetadata for InternalServerErrorException

source§

impl ProvideErrorMetadata for NotFoundException

source§

impl ProvideErrorMetadata for ServiceUnavailableException

source§

impl ProvideErrorMetadata for TooManyRequestsException

source§

impl ProvideErrorMetadata for UnprocessableEntityException

source§

impl ProvideErrorMetadata for ErrorMetadata