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 CreateMediaCapturePipelineError

Source§

impl ProvideErrorMetadata for CreateMediaConcatenationPipelineError

Source§

impl ProvideErrorMetadata for CreateMediaInsightsPipelineError

Source§

impl ProvideErrorMetadata for CreateMediaInsightsPipelineConfigurationError

Source§

impl ProvideErrorMetadata for CreateMediaLiveConnectorPipelineError

Source§

impl ProvideErrorMetadata for CreateMediaPipelineKinesisVideoStreamPoolError

Source§

impl ProvideErrorMetadata for CreateMediaStreamPipelineError

Source§

impl ProvideErrorMetadata for DeleteMediaCapturePipelineError

Source§

impl ProvideErrorMetadata for DeleteMediaInsightsPipelineConfigurationError

Source§

impl ProvideErrorMetadata for DeleteMediaPipelineError

Source§

impl ProvideErrorMetadata for DeleteMediaPipelineKinesisVideoStreamPoolError

Source§

impl ProvideErrorMetadata for GetMediaCapturePipelineError

Source§

impl ProvideErrorMetadata for GetMediaInsightsPipelineConfigurationError

Source§

impl ProvideErrorMetadata for GetMediaPipelineError

Source§

impl ProvideErrorMetadata for GetMediaPipelineKinesisVideoStreamPoolError

Source§

impl ProvideErrorMetadata for GetSpeakerSearchTaskError

Source§

impl ProvideErrorMetadata for GetVoiceToneAnalysisTaskError

Source§

impl ProvideErrorMetadata for ListMediaCapturePipelinesError

Source§

impl ProvideErrorMetadata for ListMediaInsightsPipelineConfigurationsError

Source§

impl ProvideErrorMetadata for ListMediaPipelineKinesisVideoStreamPoolsError

Source§

impl ProvideErrorMetadata for ListMediaPipelinesError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for StartSpeakerSearchTaskError

Source§

impl ProvideErrorMetadata for StartVoiceToneAnalysisTaskError

Source§

impl ProvideErrorMetadata for StopSpeakerSearchTaskError

Source§

impl ProvideErrorMetadata for StopVoiceToneAnalysisTaskError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateMediaInsightsPipelineConfigurationError

Source§

impl ProvideErrorMetadata for UpdateMediaInsightsPipelineStatusError

Source§

impl ProvideErrorMetadata for UpdateMediaPipelineKinesisVideoStreamPoolError

Source§

impl ProvideErrorMetadata for BadRequestException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for ForbiddenException

Source§

impl ProvideErrorMetadata for NotFoundException

Source§

impl ProvideErrorMetadata for ResourceLimitExceededException

Source§

impl ProvideErrorMetadata for ServiceFailureException

Source§

impl ProvideErrorMetadata for ServiceUnavailableException

Source§

impl ProvideErrorMetadata for ThrottledClientException

Source§

impl ProvideErrorMetadata for UnauthorizedClientException

Source§

impl ProvideErrorMetadata for ErrorMetadata