aws_sdk_verifiedpermissions::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 BatchGetPolicyError

Source§

impl ProvideErrorMetadata for BatchIsAuthorizedError

Source§

impl ProvideErrorMetadata for BatchIsAuthorizedWithTokenError

Source§

impl ProvideErrorMetadata for CreateIdentitySourceError

Source§

impl ProvideErrorMetadata for CreatePolicyError

Source§

impl ProvideErrorMetadata for CreatePolicyStoreError

Source§

impl ProvideErrorMetadata for CreatePolicyTemplateError

Source§

impl ProvideErrorMetadata for DeleteIdentitySourceError

Source§

impl ProvideErrorMetadata for DeletePolicyError

Source§

impl ProvideErrorMetadata for DeletePolicyStoreError

Source§

impl ProvideErrorMetadata for DeletePolicyTemplateError

Source§

impl ProvideErrorMetadata for GetIdentitySourceError

Source§

impl ProvideErrorMetadata for GetPolicyError

Source§

impl ProvideErrorMetadata for GetPolicyStoreError

Source§

impl ProvideErrorMetadata for GetPolicyTemplateError

Source§

impl ProvideErrorMetadata for GetSchemaError

Source§

impl ProvideErrorMetadata for IsAuthorizedError

Source§

impl ProvideErrorMetadata for IsAuthorizedWithTokenError

Source§

impl ProvideErrorMetadata for ListIdentitySourcesError

Source§

impl ProvideErrorMetadata for ListPoliciesError

Source§

impl ProvideErrorMetadata for ListPolicyStoresError

Source§

impl ProvideErrorMetadata for ListPolicyTemplatesError

Source§

impl ProvideErrorMetadata for PutSchemaError

Source§

impl ProvideErrorMetadata for UpdateIdentitySourceError

Source§

impl ProvideErrorMetadata for UpdatePolicyError

Source§

impl ProvideErrorMetadata for UpdatePolicyStoreError

Source§

impl ProvideErrorMetadata for UpdatePolicyTemplateError

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