Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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 AccessDeniedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for CreateBrandProfileAttributesError

Source§

impl ProvideErrorMetadata for CreateBrandProfileError

Source§

impl ProvideErrorMetadata for CreateBrandProfileFromRegistrationError

Source§

impl ProvideErrorMetadata for CreateNotifyCodeConfigurationError

Source§

impl ProvideErrorMetadata for CreateRegistrationsFromBrandProfileError

Source§

impl ProvideErrorMetadata for DeleteBrandProfileAttributeError

Source§

impl ProvideErrorMetadata for DeleteBrandProfileError

Source§

impl ProvideErrorMetadata for DeleteNotifyCodeConfigurationError

Source§

impl ProvideErrorMetadata for Error

Source§

impl ProvideErrorMetadata for ErrorMetadata

Source§

impl ProvideErrorMetadata for GetBrandProfileAttributeError

Source§

impl ProvideErrorMetadata for GetBrandProfileError

Source§

impl ProvideErrorMetadata for GetJobError

Source§

impl ProvideErrorMetadata for GetNotifyCodeConfigurationError

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for ListBrandProfileAttributesError

Source§

impl ProvideErrorMetadata for ListBrandProfilesError

Source§

impl ProvideErrorMetadata for ListJobsError

Source§

impl ProvideErrorMetadata for ListNotifyCodeConfigurationsError

Source§

impl ProvideErrorMetadata for ListRegistrationsFromBrandProfileError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for SendNotifyCodeVerificationError

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for ThrottlingException

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateBrandProfileAttributeError

Source§

impl ProvideErrorMetadata for UpdateBrandProfileError

Source§

impl ProvideErrorMetadata for UpdateBrandProfileFromRegistrationError

Source§

impl ProvideErrorMetadata for UpdateNotifyCodeConfigurationError

Source§

impl ProvideErrorMetadata for UpdateRegistrationsFromBrandProfileError

Source§

impl ProvideErrorMetadata for ValidateNotifyCodeVerificationError

Source§

impl ProvideErrorMetadata for ValidationException