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>where E: ProvideErrorMetadata,

Implementors§

source§

impl ProvideErrorMetadata for AssociateMemberError

source§

impl ProvideErrorMetadata for BatchGetAccountStatusError

source§

impl ProvideErrorMetadata for BatchGetCodeSnippetError

source§

impl ProvideErrorMetadata for BatchGetFindingDetailsError

source§

impl ProvideErrorMetadata for BatchGetFreeTrialInfoError

source§

impl ProvideErrorMetadata for BatchGetMemberEc2DeepInspectionStatusError

source§

impl ProvideErrorMetadata for BatchUpdateMemberEc2DeepInspectionStatusError

source§

impl ProvideErrorMetadata for CancelFindingsReportError

source§

impl ProvideErrorMetadata for CancelSbomExportError

source§

impl ProvideErrorMetadata for CreateFilterError

source§

impl ProvideErrorMetadata for CreateFindingsReportError

source§

impl ProvideErrorMetadata for CreateSbomExportError

source§

impl ProvideErrorMetadata for DeleteFilterError

source§

impl ProvideErrorMetadata for DescribeOrganizationConfigurationError

source§

impl ProvideErrorMetadata for DisableError

source§

impl ProvideErrorMetadata for DisableDelegatedAdminAccountError

source§

impl ProvideErrorMetadata for DisassociateMemberError

source§

impl ProvideErrorMetadata for EnableError

source§

impl ProvideErrorMetadata for EnableDelegatedAdminAccountError

source§

impl ProvideErrorMetadata for GetConfigurationError

source§

impl ProvideErrorMetadata for GetDelegatedAdminAccountError

source§

impl ProvideErrorMetadata for GetEc2DeepInspectionConfigurationError

source§

impl ProvideErrorMetadata for GetEncryptionKeyError

source§

impl ProvideErrorMetadata for GetFindingsReportStatusError

source§

impl ProvideErrorMetadata for GetMemberError

source§

impl ProvideErrorMetadata for GetSbomExportError

source§

impl ProvideErrorMetadata for ListAccountPermissionsError

source§

impl ProvideErrorMetadata for ListCoverageError

source§

impl ProvideErrorMetadata for ListCoverageStatisticsError

source§

impl ProvideErrorMetadata for ListDelegatedAdminAccountsError

source§

impl ProvideErrorMetadata for ListFiltersError

source§

impl ProvideErrorMetadata for ListFindingAggregationsError

source§

impl ProvideErrorMetadata for ListFindingsError

source§

impl ProvideErrorMetadata for ListMembersError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for ListUsageTotalsError

source§

impl ProvideErrorMetadata for ResetEncryptionKeyError

source§

impl ProvideErrorMetadata for SearchVulnerabilitiesError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateConfigurationError

source§

impl ProvideErrorMetadata for UpdateEc2DeepInspectionConfigurationError

source§

impl ProvideErrorMetadata for UpdateEncryptionKeyError

source§

impl ProvideErrorMetadata for UpdateFilterError

source§

impl ProvideErrorMetadata for UpdateOrgEc2DeepInspectionConfigurationError

source§

impl ProvideErrorMetadata for UpdateOrganizationConfigurationError

source§

impl ProvideErrorMetadata for AccessDeniedException

source§

impl ProvideErrorMetadata for BadRequestException

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

source§

impl ProvideErrorMetadata for Unhandled