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 CreateEncoderConfigurationError

source§

impl ProvideErrorMetadata for CreateParticipantTokenError

source§

impl ProvideErrorMetadata for CreateStageError

source§

impl ProvideErrorMetadata for CreateStorageConfigurationError

source§

impl ProvideErrorMetadata for DeleteEncoderConfigurationError

source§

impl ProvideErrorMetadata for DeleteStageError

source§

impl ProvideErrorMetadata for DeleteStorageConfigurationError

source§

impl ProvideErrorMetadata for DisconnectParticipantError

source§

impl ProvideErrorMetadata for GetCompositionError

source§

impl ProvideErrorMetadata for GetEncoderConfigurationError

source§

impl ProvideErrorMetadata for GetParticipantError

source§

impl ProvideErrorMetadata for GetStageError

source§

impl ProvideErrorMetadata for GetStageSessionError

source§

impl ProvideErrorMetadata for GetStorageConfigurationError

source§

impl ProvideErrorMetadata for ListCompositionsError

source§

impl ProvideErrorMetadata for ListEncoderConfigurationsError

source§

impl ProvideErrorMetadata for ListParticipantEventsError

source§

impl ProvideErrorMetadata for ListParticipantsError

source§

impl ProvideErrorMetadata for ListStageSessionsError

source§

impl ProvideErrorMetadata for ListStagesError

source§

impl ProvideErrorMetadata for ListStorageConfigurationsError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for StartCompositionError

source§

impl ProvideErrorMetadata for StopCompositionError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateStageError

source§

impl ProvideErrorMetadata for AccessDeniedException

source§

impl ProvideErrorMetadata for ConflictException

source§

impl ProvideErrorMetadata for InternalServerException

source§

impl ProvideErrorMetadata for PendingVerification

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

source§

impl ProvideErrorMetadata for ValidationException

source§

impl ProvideErrorMetadata for ErrorMetadata