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>

source§

impl<O, E> ProvideErrorMetadata for WaiterError<O, E>

Implementors§

source§

impl ProvideErrorMetadata for Error

source§

impl ProvideErrorMetadata for BulkPublishError

source§

impl ProvideErrorMetadata for DeleteDatasetError

source§

impl ProvideErrorMetadata for DescribeDatasetError

source§

impl ProvideErrorMetadata for DescribeIdentityPoolUsageError

source§

impl ProvideErrorMetadata for DescribeIdentityUsageError

source§

impl ProvideErrorMetadata for GetBulkPublishDetailsError

source§

impl ProvideErrorMetadata for GetCognitoEventsError

source§

impl ProvideErrorMetadata for GetIdentityPoolConfigurationError

source§

impl ProvideErrorMetadata for ListDatasetsError

source§

impl ProvideErrorMetadata for ListIdentityPoolUsageError

source§

impl ProvideErrorMetadata for ListRecordsError

source§

impl ProvideErrorMetadata for RegisterDeviceError

source§

impl ProvideErrorMetadata for SetCognitoEventsError

source§

impl ProvideErrorMetadata for SetIdentityPoolConfigurationError

source§

impl ProvideErrorMetadata for SubscribeToDatasetError

source§

impl ProvideErrorMetadata for UnsubscribeFromDatasetError

source§

impl ProvideErrorMetadata for UpdateRecordsError

source§

impl ProvideErrorMetadata for AlreadyStreamedException

source§

impl ProvideErrorMetadata for ConcurrentModificationException

source§

impl ProvideErrorMetadata for DuplicateRequestException

source§

impl ProvideErrorMetadata for InternalErrorException

source§

impl ProvideErrorMetadata for InvalidConfigurationException

source§

impl ProvideErrorMetadata for InvalidLambdaFunctionOutputException

source§

impl ProvideErrorMetadata for InvalidParameterException

source§

impl ProvideErrorMetadata for LambdaThrottledException

source§

impl ProvideErrorMetadata for LimitExceededException

source§

impl ProvideErrorMetadata for NotAuthorizedException

source§

impl ProvideErrorMetadata for ResourceConflictException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for TooManyRequestsException

source§

impl ProvideErrorMetadata for ErrorMetadata