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 CancelJournalKinesisStreamError

Source§

impl ProvideErrorMetadata for CreateLedgerError

Source§

impl ProvideErrorMetadata for DeleteLedgerError

Source§

impl ProvideErrorMetadata for DescribeJournalKinesisStreamError

Source§

impl ProvideErrorMetadata for DescribeJournalS3ExportError

Source§

impl ProvideErrorMetadata for DescribeLedgerError

Source§

impl ProvideErrorMetadata for ExportJournalToS3Error

Source§

impl ProvideErrorMetadata for GetBlockError

Source§

impl ProvideErrorMetadata for GetDigestError

Source§

impl ProvideErrorMetadata for GetRevisionError

Source§

impl ProvideErrorMetadata for ListJournalKinesisStreamsForLedgerError

Source§

impl ProvideErrorMetadata for ListJournalS3ExportsError

Source§

impl ProvideErrorMetadata for ListJournalS3ExportsForLedgerError

Source§

impl ProvideErrorMetadata for ListLedgersError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for StreamJournalToKinesisError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateLedgerError

Source§

impl ProvideErrorMetadata for UpdateLedgerPermissionsModeError

Source§

impl ProvideErrorMetadata for InvalidParameterException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for ResourceAlreadyExistsException

Source§

impl ProvideErrorMetadata for ResourceInUseException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ResourcePreconditionNotMetException

Source§

impl ProvideErrorMetadata for ErrorMetadata