aws_sdk_ssooidc::error

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 CreateTokenError

Source§

impl ProvideErrorMetadata for CreateTokenWithIAMError

Source§

impl ProvideErrorMetadata for RegisterClientError

Source§

impl ProvideErrorMetadata for StartDeviceAuthorizationError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for AuthorizationPendingException

Source§

impl ProvideErrorMetadata for ExpiredTokenException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for InvalidClientException

Source§

impl ProvideErrorMetadata for InvalidClientMetadataException

Source§

impl ProvideErrorMetadata for InvalidGrantException

Source§

impl ProvideErrorMetadata for InvalidRequestException

Source§

impl ProvideErrorMetadata for InvalidRequestRegionException

Source§

impl ProvideErrorMetadata for InvalidScopeException

Source§

impl ProvideErrorMetadata for SlowDownException

Source§

impl ProvideErrorMetadata for UnauthorizedClientException

Source§

impl ProvideErrorMetadata for UnsupportedGrantTypeException

Source§

impl ProvideErrorMetadata for ErrorMetadata