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 CreateApplicationError

Source§

impl ProvideErrorMetadata for CreateDataIntegrationError

Source§

impl ProvideErrorMetadata for CreateDataIntegrationAssociationError

Source§

impl ProvideErrorMetadata for CreateEventIntegrationError

Source§

impl ProvideErrorMetadata for DeleteApplicationError

Source§

impl ProvideErrorMetadata for DeleteDataIntegrationError

Source§

impl ProvideErrorMetadata for DeleteEventIntegrationError

Source§

impl ProvideErrorMetadata for GetApplicationError

Source§

impl ProvideErrorMetadata for GetDataIntegrationError

Source§

impl ProvideErrorMetadata for GetEventIntegrationError

Source§

impl ProvideErrorMetadata for ListApplicationAssociationsError

Source§

impl ProvideErrorMetadata for ListApplicationsError

Source§

impl ProvideErrorMetadata for ListDataIntegrationAssociationsError

Source§

impl ProvideErrorMetadata for ListDataIntegrationsError

Source§

impl ProvideErrorMetadata for ListEventIntegrationAssociationsError

Source§

impl ProvideErrorMetadata for ListEventIntegrationsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateApplicationError

Source§

impl ProvideErrorMetadata for UpdateDataIntegrationError

Source§

impl ProvideErrorMetadata for UpdateDataIntegrationAssociationError

Source§

impl ProvideErrorMetadata for UpdateEventIntegrationError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for DuplicateResourceException

Source§

impl ProvideErrorMetadata for InternalServiceError

Source§

impl ProvideErrorMetadata for InvalidRequestException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ResourceQuotaExceededException

Source§

impl ProvideErrorMetadata for ThrottlingException

Source§

impl ProvideErrorMetadata for UnsupportedOperationException

Source§

impl ProvideErrorMetadata for ErrorMetadata