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 CancelTagSyncTaskError

Source§

impl ProvideErrorMetadata for CreateGroupError

Source§

impl ProvideErrorMetadata for DeleteGroupError

Source§

impl ProvideErrorMetadata for GetAccountSettingsError

Source§

impl ProvideErrorMetadata for GetGroupError

Source§

impl ProvideErrorMetadata for GetGroupConfigurationError

Source§

impl ProvideErrorMetadata for GetGroupQueryError

Source§

impl ProvideErrorMetadata for GetTagSyncTaskError

Source§

impl ProvideErrorMetadata for GetTagsError

Source§

impl ProvideErrorMetadata for GroupResourcesError

Source§

impl ProvideErrorMetadata for ListGroupResourcesError

Source§

impl ProvideErrorMetadata for ListGroupingStatusesError

Source§

impl ProvideErrorMetadata for ListGroupsError

Source§

impl ProvideErrorMetadata for ListTagSyncTasksError

Source§

impl ProvideErrorMetadata for PutGroupConfigurationError

Source§

impl ProvideErrorMetadata for SearchResourcesError

Source§

impl ProvideErrorMetadata for StartTagSyncTaskError

Source§

impl ProvideErrorMetadata for TagError

Source§

impl ProvideErrorMetadata for UngroupResourcesError

Source§

impl ProvideErrorMetadata for UntagError

Source§

impl ProvideErrorMetadata for UpdateAccountSettingsError

Source§

impl ProvideErrorMetadata for UpdateGroupError

Source§

impl ProvideErrorMetadata for UpdateGroupQueryError

Source§

impl ProvideErrorMetadata for BadRequestException

Source§

impl ProvideErrorMetadata for ForbiddenException

Source§

impl ProvideErrorMetadata for InternalServerErrorException

Source§

impl ProvideErrorMetadata for MethodNotAllowedException

Source§

impl ProvideErrorMetadata for NotFoundException

Source§

impl ProvideErrorMetadata for TooManyRequestsException

Source§

impl ProvideErrorMetadata for UnauthorizedException

Source§

impl ProvideErrorMetadata for ErrorMetadata