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 CreateProfileError

source§

impl ProvideErrorMetadata for CreateTrustAnchorError

source§

impl ProvideErrorMetadata for DeleteAttributeMappingError

source§

impl ProvideErrorMetadata for DeleteCrlError

source§

impl ProvideErrorMetadata for DeleteProfileError

source§

impl ProvideErrorMetadata for DeleteTrustAnchorError

source§

impl ProvideErrorMetadata for DisableCrlError

source§

impl ProvideErrorMetadata for DisableProfileError

source§

impl ProvideErrorMetadata for DisableTrustAnchorError

source§

impl ProvideErrorMetadata for EnableCrlError

source§

impl ProvideErrorMetadata for EnableProfileError

source§

impl ProvideErrorMetadata for EnableTrustAnchorError

source§

impl ProvideErrorMetadata for GetCrlError

source§

impl ProvideErrorMetadata for GetProfileError

source§

impl ProvideErrorMetadata for GetSubjectError

source§

impl ProvideErrorMetadata for GetTrustAnchorError

source§

impl ProvideErrorMetadata for ImportCrlError

source§

impl ProvideErrorMetadata for ListCrlsError

source§

impl ProvideErrorMetadata for ListProfilesError

source§

impl ProvideErrorMetadata for ListSubjectsError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for ListTrustAnchorsError

source§

impl ProvideErrorMetadata for PutAttributeMappingError

source§

impl ProvideErrorMetadata for PutNotificationSettingsError

source§

impl ProvideErrorMetadata for ResetNotificationSettingsError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateCrlError

source§

impl ProvideErrorMetadata for UpdateProfileError

source§

impl ProvideErrorMetadata for UpdateTrustAnchorError

source§

impl ProvideErrorMetadata for AccessDeniedException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for TooManyTagsException

source§

impl ProvideErrorMetadata for ValidationException

source§

impl ProvideErrorMetadata for ErrorMetadata