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 AddProfileKeyError

source§

impl ProvideErrorMetadata for CreateCalculatedAttributeDefinitionError

source§

impl ProvideErrorMetadata for CreateDomainError

source§

impl ProvideErrorMetadata for CreateEventStreamError

source§

impl ProvideErrorMetadata for CreateIntegrationWorkflowError

source§

impl ProvideErrorMetadata for CreateProfileError

source§

impl ProvideErrorMetadata for DeleteCalculatedAttributeDefinitionError

source§

impl ProvideErrorMetadata for DeleteDomainError

source§

impl ProvideErrorMetadata for DeleteEventStreamError

source§

impl ProvideErrorMetadata for DeleteIntegrationError

source§

impl ProvideErrorMetadata for DeleteProfileError

source§

impl ProvideErrorMetadata for DeleteProfileKeyError

source§

impl ProvideErrorMetadata for DeleteProfileObjectError

source§

impl ProvideErrorMetadata for DeleteProfileObjectTypeError

source§

impl ProvideErrorMetadata for DeleteWorkflowError

source§

impl ProvideErrorMetadata for DetectProfileObjectTypeError

source§

impl ProvideErrorMetadata for GetAutoMergingPreviewError

source§

impl ProvideErrorMetadata for GetCalculatedAttributeDefinitionError

source§

impl ProvideErrorMetadata for GetCalculatedAttributeForProfileError

source§

impl ProvideErrorMetadata for GetDomainError

source§

impl ProvideErrorMetadata for GetEventStreamError

source§

impl ProvideErrorMetadata for GetIdentityResolutionJobError

source§

impl ProvideErrorMetadata for GetIntegrationError

source§

impl ProvideErrorMetadata for GetMatchesError

source§

impl ProvideErrorMetadata for GetProfileObjectTypeError

source§

impl ProvideErrorMetadata for GetProfileObjectTypeTemplateError

source§

impl ProvideErrorMetadata for GetSimilarProfilesError

source§

impl ProvideErrorMetadata for GetWorkflowError

source§

impl ProvideErrorMetadata for GetWorkflowStepsError

source§

impl ProvideErrorMetadata for ListAccountIntegrationsError

source§

impl ProvideErrorMetadata for ListCalculatedAttributeDefinitionsError

source§

impl ProvideErrorMetadata for ListCalculatedAttributesForProfileError

source§

impl ProvideErrorMetadata for ListDomainsError

source§

impl ProvideErrorMetadata for ListEventStreamsError

source§

impl ProvideErrorMetadata for ListIdentityResolutionJobsError

source§

impl ProvideErrorMetadata for ListIntegrationsError

source§

impl ProvideErrorMetadata for ListProfileObjectTypeTemplatesError

source§

impl ProvideErrorMetadata for ListProfileObjectTypesError

source§

impl ProvideErrorMetadata for ListProfileObjectsError

source§

impl ProvideErrorMetadata for ListRuleBasedMatchesError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for ListWorkflowsError

source§

impl ProvideErrorMetadata for MergeProfilesError

source§

impl ProvideErrorMetadata for PutIntegrationError

source§

impl ProvideErrorMetadata for PutProfileObjectError

source§

impl ProvideErrorMetadata for PutProfileObjectTypeError

source§

impl ProvideErrorMetadata for SearchProfilesError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateCalculatedAttributeDefinitionError

source§

impl ProvideErrorMetadata for UpdateDomainError

source§

impl ProvideErrorMetadata for UpdateProfileError

source§

impl ProvideErrorMetadata for AccessDeniedException

source§

impl ProvideErrorMetadata for BadRequestException

source§

impl ProvideErrorMetadata for InternalServerException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for ThrottlingException

source§

impl ProvideErrorMetadata for ErrorMetadata