ProvideErrorMetadata

Trait ProvideErrorMetadata 

Source
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 BatchPutMessageError

Source§

impl ProvideErrorMetadata for CancelPipelineReprocessingError

Source§

impl ProvideErrorMetadata for CreateChannelError

Source§

impl ProvideErrorMetadata for CreateDatasetError

Source§

impl ProvideErrorMetadata for CreateDatasetContentError

Source§

impl ProvideErrorMetadata for CreateDatastoreError

Source§

impl ProvideErrorMetadata for CreatePipelineError

Source§

impl ProvideErrorMetadata for DeleteChannelError

Source§

impl ProvideErrorMetadata for DeleteDatasetError

Source§

impl ProvideErrorMetadata for DeleteDatasetContentError

Source§

impl ProvideErrorMetadata for DeleteDatastoreError

Source§

impl ProvideErrorMetadata for DeletePipelineError

Source§

impl ProvideErrorMetadata for DescribeChannelError

Source§

impl ProvideErrorMetadata for DescribeDatasetError

Source§

impl ProvideErrorMetadata for DescribeDatastoreError

Source§

impl ProvideErrorMetadata for DescribeLoggingOptionsError

Source§

impl ProvideErrorMetadata for DescribePipelineError

Source§

impl ProvideErrorMetadata for GetDatasetContentError

Source§

impl ProvideErrorMetadata for ListChannelsError

Source§

impl ProvideErrorMetadata for ListDatasetContentsError

Source§

impl ProvideErrorMetadata for ListDatasetsError

Source§

impl ProvideErrorMetadata for ListDatastoresError

Source§

impl ProvideErrorMetadata for ListPipelinesError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for PutLoggingOptionsError

Source§

impl ProvideErrorMetadata for RunPipelineActivityError

Source§

impl ProvideErrorMetadata for SampleChannelDataError

Source§

impl ProvideErrorMetadata for StartPipelineReprocessingError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateChannelError

Source§

impl ProvideErrorMetadata for UpdateDatasetError

Source§

impl ProvideErrorMetadata for UpdateDatastoreError

Source§

impl ProvideErrorMetadata for UpdatePipelineError

Source§

impl ProvideErrorMetadata for InternalFailureException

Source§

impl ProvideErrorMetadata for InvalidRequestException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for ResourceAlreadyExistsException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceUnavailableException

Source§

impl ProvideErrorMetadata for ThrottlingException

Source§

impl ProvideErrorMetadata for ErrorMetadata