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 AssociateChannelError

Source§

impl ProvideErrorMetadata for AssociateManagedNotificationAccountContactError

Source§

impl ProvideErrorMetadata for AssociateManagedNotificationAdditionalChannelError

Source§

impl ProvideErrorMetadata for CreateEventRuleError

Source§

impl ProvideErrorMetadata for CreateNotificationConfigurationError

Source§

impl ProvideErrorMetadata for DeleteEventRuleError

Source§

impl ProvideErrorMetadata for DeleteNotificationConfigurationError

Source§

impl ProvideErrorMetadata for DeregisterNotificationHubError

Source§

impl ProvideErrorMetadata for DisableNotificationsAccessForOrganizationError

Source§

impl ProvideErrorMetadata for DisassociateChannelError

Source§

impl ProvideErrorMetadata for DisassociateManagedNotificationAccountContactError

Source§

impl ProvideErrorMetadata for DisassociateManagedNotificationAdditionalChannelError

Source§

impl ProvideErrorMetadata for EnableNotificationsAccessForOrganizationError

Source§

impl ProvideErrorMetadata for GetEventRuleError

Source§

impl ProvideErrorMetadata for GetManagedNotificationChildEventError

Source§

impl ProvideErrorMetadata for GetManagedNotificationConfigurationError

Source§

impl ProvideErrorMetadata for GetManagedNotificationEventError

Source§

impl ProvideErrorMetadata for GetNotificationConfigurationError

Source§

impl ProvideErrorMetadata for GetNotificationEventError

Source§

impl ProvideErrorMetadata for GetNotificationsAccessForOrganizationError

Source§

impl ProvideErrorMetadata for ListChannelsError

Source§

impl ProvideErrorMetadata for ListEventRulesError

Source§

impl ProvideErrorMetadata for ListManagedNotificationChannelAssociationsError

Source§

impl ProvideErrorMetadata for ListManagedNotificationChildEventsError

Source§

impl ProvideErrorMetadata for ListManagedNotificationConfigurationsError

Source§

impl ProvideErrorMetadata for ListManagedNotificationEventsError

Source§

impl ProvideErrorMetadata for ListNotificationConfigurationsError

Source§

impl ProvideErrorMetadata for ListNotificationEventsError

Source§

impl ProvideErrorMetadata for ListNotificationHubsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for RegisterNotificationHubError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateEventRuleError

Source§

impl ProvideErrorMetadata for UpdateNotificationConfigurationError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for ThrottlingException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata