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 CreateIdentityPoolError

Source§

impl ProvideErrorMetadata for DeleteIdentitiesError

Source§

impl ProvideErrorMetadata for DeleteIdentityPoolError

Source§

impl ProvideErrorMetadata for DescribeIdentityError

Source§

impl ProvideErrorMetadata for DescribeIdentityPoolError

Source§

impl ProvideErrorMetadata for GetCredentialsForIdentityError

Source§

impl ProvideErrorMetadata for GetIdError

Source§

impl ProvideErrorMetadata for GetIdentityPoolRolesError

Source§

impl ProvideErrorMetadata for GetOpenIdTokenError

Source§

impl ProvideErrorMetadata for GetOpenIdTokenForDeveloperIdentityError

Source§

impl ProvideErrorMetadata for GetPrincipalTagAttributeMapError

Source§

impl ProvideErrorMetadata for ListIdentitiesError

Source§

impl ProvideErrorMetadata for ListIdentityPoolsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for LookupDeveloperIdentityError

Source§

impl ProvideErrorMetadata for MergeDeveloperIdentitiesError

Source§

impl ProvideErrorMetadata for SetIdentityPoolRolesError

Source§

impl ProvideErrorMetadata for SetPrincipalTagAttributeMapError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UnlinkDeveloperIdentityError

Source§

impl ProvideErrorMetadata for UnlinkIdentityError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateIdentityPoolError

Source§

impl ProvideErrorMetadata for ConcurrentModificationException

Source§

impl ProvideErrorMetadata for DeveloperUserAlreadyRegisteredException

Source§

impl ProvideErrorMetadata for ExternalServiceException

Source§

impl ProvideErrorMetadata for InternalErrorException

Source§

impl ProvideErrorMetadata for InvalidIdentityPoolConfigurationException

Source§

impl ProvideErrorMetadata for InvalidParameterException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for NotAuthorizedException

Source§

impl ProvideErrorMetadata for ResourceConflictException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for TooManyRequestsException

Source§

impl ProvideErrorMetadata for ErrorMetadata