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 AddTagsToStreamError

Source§

impl ProvideErrorMetadata for CreateStreamError

Source§

impl ProvideErrorMetadata for DecreaseStreamRetentionPeriodError

Source§

impl ProvideErrorMetadata for DeleteResourcePolicyError

Source§

impl ProvideErrorMetadata for DeleteStreamError

Source§

impl ProvideErrorMetadata for DeregisterStreamConsumerError

Source§

impl ProvideErrorMetadata for DescribeLimitsError

Source§

impl ProvideErrorMetadata for DescribeStreamError

Source§

impl ProvideErrorMetadata for DescribeStreamConsumerError

Source§

impl ProvideErrorMetadata for DescribeStreamSummaryError

Source§

impl ProvideErrorMetadata for DisableEnhancedMonitoringError

Source§

impl ProvideErrorMetadata for EnableEnhancedMonitoringError

Source§

impl ProvideErrorMetadata for GetRecordsError

Source§

impl ProvideErrorMetadata for GetResourcePolicyError

Source§

impl ProvideErrorMetadata for GetShardIteratorError

Source§

impl ProvideErrorMetadata for IncreaseStreamRetentionPeriodError

Source§

impl ProvideErrorMetadata for ListShardsError

Source§

impl ProvideErrorMetadata for ListStreamConsumersError

Source§

impl ProvideErrorMetadata for ListStreamsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for ListTagsForStreamError

Source§

impl ProvideErrorMetadata for MergeShardsError

Source§

impl ProvideErrorMetadata for PutRecordError

Source§

impl ProvideErrorMetadata for PutRecordsError

Source§

impl ProvideErrorMetadata for PutResourcePolicyError

Source§

impl ProvideErrorMetadata for RegisterStreamConsumerError

Source§

impl ProvideErrorMetadata for RemoveTagsFromStreamError

Source§

impl ProvideErrorMetadata for SplitShardError

Source§

impl ProvideErrorMetadata for StartStreamEncryptionError

Source§

impl ProvideErrorMetadata for StopStreamEncryptionError

Source§

impl ProvideErrorMetadata for SubscribeToShardError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateShardCountError

Source§

impl ProvideErrorMetadata for UpdateStreamModeError

Source§

impl ProvideErrorMetadata for SubscribeToShardEventStreamError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ExpiredIteratorException

Source§

impl ProvideErrorMetadata for ExpiredNextTokenException

Source§

impl ProvideErrorMetadata for InternalFailureException

Source§

impl ProvideErrorMetadata for InvalidArgumentException

Source§

impl ProvideErrorMetadata for KmsAccessDeniedException

Source§

impl ProvideErrorMetadata for KmsDisabledException

Source§

impl ProvideErrorMetadata for KmsInvalidStateException

Source§

impl ProvideErrorMetadata for KmsNotFoundException

Source§

impl ProvideErrorMetadata for KmsOptInRequired

Source§

impl ProvideErrorMetadata for KmsThrottlingException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for ProvisionedThroughputExceededException

Source§

impl ProvideErrorMetadata for ResourceInUseException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata