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 DeleteLexiconError

Source§

impl ProvideErrorMetadata for DescribeVoicesError

Source§

impl ProvideErrorMetadata for GetLexiconError

Source§

impl ProvideErrorMetadata for GetSpeechSynthesisTaskError

Source§

impl ProvideErrorMetadata for ListLexiconsError

Source§

impl ProvideErrorMetadata for ListSpeechSynthesisTasksError

Source§

impl ProvideErrorMetadata for PutLexiconError

Source§

impl ProvideErrorMetadata for StartSpeechSynthesisTaskError

Source§

impl ProvideErrorMetadata for SynthesizeSpeechError

Source§

impl ProvideErrorMetadata for EngineNotSupportedException

Source§

impl ProvideErrorMetadata for InvalidLexiconException

Source§

impl ProvideErrorMetadata for InvalidNextTokenException

Source§

impl ProvideErrorMetadata for InvalidS3BucketException

Source§

impl ProvideErrorMetadata for InvalidS3KeyException

Source§

impl ProvideErrorMetadata for InvalidSampleRateException

Source§

impl ProvideErrorMetadata for InvalidSnsTopicArnException

Source§

impl ProvideErrorMetadata for InvalidSsmlException

Source§

impl ProvideErrorMetadata for InvalidTaskIdException

Source§

impl ProvideErrorMetadata for LanguageNotSupportedException

Source§

impl ProvideErrorMetadata for LexiconNotFoundException

Source§

impl ProvideErrorMetadata for LexiconSizeExceededException

Source§

impl ProvideErrorMetadata for MarksNotSupportedForFormatException

Source§

impl ProvideErrorMetadata for MaxLexemeLengthExceededException

Source§

impl ProvideErrorMetadata for MaxLexiconsNumberExceededException

Source§

impl ProvideErrorMetadata for ServiceFailureException

Source§

impl ProvideErrorMetadata for SsmlMarksNotSupportedForTextTypeException

Source§

impl ProvideErrorMetadata for SynthesisTaskNotFoundException

Source§

impl ProvideErrorMetadata for TextLengthExceededException

Source§

impl ProvideErrorMetadata for UnsupportedPlsAlphabetException

Source§

impl ProvideErrorMetadata for UnsupportedPlsLanguageException

Source§

impl ProvideErrorMetadata for ErrorMetadata