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 AcceptAdministratorInvitationError

Source§

impl ProvideErrorMetadata for AcceptInvitationError

Source§

impl ProvideErrorMetadata for BatchDeleteAutomationRulesError

Source§

impl ProvideErrorMetadata for BatchDisableStandardsError

Source§

impl ProvideErrorMetadata for BatchEnableStandardsError

Source§

impl ProvideErrorMetadata for BatchGetAutomationRulesError

Source§

impl ProvideErrorMetadata for BatchGetConfigurationPolicyAssociationsError

Source§

impl ProvideErrorMetadata for BatchGetSecurityControlsError

Source§

impl ProvideErrorMetadata for BatchGetStandardsControlAssociationsError

Source§

impl ProvideErrorMetadata for BatchImportFindingsError

Source§

impl ProvideErrorMetadata for BatchUpdateAutomationRulesError

Source§

impl ProvideErrorMetadata for BatchUpdateFindingsError

Source§

impl ProvideErrorMetadata for BatchUpdateFindingsV2Error

Source§

impl ProvideErrorMetadata for BatchUpdateStandardsControlAssociationsError

Source§

impl ProvideErrorMetadata for ConnectorRegistrationsV2Error

Source§

impl ProvideErrorMetadata for CreateActionTargetError

Source§

impl ProvideErrorMetadata for CreateAggregatorV2Error

Source§

impl ProvideErrorMetadata for CreateAutomationRuleError

Source§

impl ProvideErrorMetadata for CreateAutomationRuleV2Error

Source§

impl ProvideErrorMetadata for CreateConfigurationPolicyError

Source§

impl ProvideErrorMetadata for CreateConnectorV2Error

Source§

impl ProvideErrorMetadata for CreateFindingAggregatorError

Source§

impl ProvideErrorMetadata for CreateInsightError

Source§

impl ProvideErrorMetadata for CreateMembersError

Source§

impl ProvideErrorMetadata for CreateTicketV2Error

Source§

impl ProvideErrorMetadata for DeclineInvitationsError

Source§

impl ProvideErrorMetadata for DeleteActionTargetError

Source§

impl ProvideErrorMetadata for DeleteAggregatorV2Error

Source§

impl ProvideErrorMetadata for DeleteAutomationRuleV2Error

Source§

impl ProvideErrorMetadata for DeleteConfigurationPolicyError

Source§

impl ProvideErrorMetadata for DeleteConnectorV2Error

Source§

impl ProvideErrorMetadata for DeleteFindingAggregatorError

Source§

impl ProvideErrorMetadata for DeleteInsightError

Source§

impl ProvideErrorMetadata for DeleteInvitationsError

Source§

impl ProvideErrorMetadata for DeleteMembersError

Source§

impl ProvideErrorMetadata for DescribeActionTargetsError

Source§

impl ProvideErrorMetadata for DescribeHubError

Source§

impl ProvideErrorMetadata for DescribeOrganizationConfigurationError

Source§

impl ProvideErrorMetadata for DescribeProductsError

Source§

impl ProvideErrorMetadata for DescribeProductsV2Error

Source§

impl ProvideErrorMetadata for DescribeSecurityHubV2Error

Source§

impl ProvideErrorMetadata for DescribeStandardsError

Source§

impl ProvideErrorMetadata for DescribeStandardsControlsError

Source§

impl ProvideErrorMetadata for DisableImportFindingsForProductError

Source§

impl ProvideErrorMetadata for DisableOrganizationAdminAccountError

Source§

impl ProvideErrorMetadata for DisableSecurityHubError

Source§

impl ProvideErrorMetadata for DisableSecurityHubV2Error

Source§

impl ProvideErrorMetadata for DisassociateFromAdministratorAccountError

Source§

impl ProvideErrorMetadata for DisassociateFromMasterAccountError

Source§

impl ProvideErrorMetadata for DisassociateMembersError

Source§

impl ProvideErrorMetadata for EnableImportFindingsForProductError

Source§

impl ProvideErrorMetadata for EnableOrganizationAdminAccountError

Source§

impl ProvideErrorMetadata for EnableSecurityHubError

Source§

impl ProvideErrorMetadata for EnableSecurityHubV2Error

Source§

impl ProvideErrorMetadata for GetAdministratorAccountError

Source§

impl ProvideErrorMetadata for GetAggregatorV2Error

Source§

impl ProvideErrorMetadata for GetAutomationRuleV2Error

Source§

impl ProvideErrorMetadata for GetConfigurationPolicyError

Source§

impl ProvideErrorMetadata for GetConfigurationPolicyAssociationError

Source§

impl ProvideErrorMetadata for GetConnectorV2Error

Source§

impl ProvideErrorMetadata for GetEnabledStandardsError

Source§

impl ProvideErrorMetadata for GetFindingAggregatorError

Source§

impl ProvideErrorMetadata for GetFindingHistoryError

Source§

impl ProvideErrorMetadata for GetFindingStatisticsV2Error

Source§

impl ProvideErrorMetadata for GetFindingsError

Source§

impl ProvideErrorMetadata for GetFindingsV2Error

Source§

impl ProvideErrorMetadata for GetInsightResultsError

Source§

impl ProvideErrorMetadata for GetInsightsError

Source§

impl ProvideErrorMetadata for GetInvitationsCountError

Source§

impl ProvideErrorMetadata for GetMasterAccountError

Source§

impl ProvideErrorMetadata for GetMembersError

Source§

impl ProvideErrorMetadata for GetResourcesStatisticsV2Error

Source§

impl ProvideErrorMetadata for GetResourcesV2Error

Source§

impl ProvideErrorMetadata for GetSecurityControlDefinitionError

Source§

impl ProvideErrorMetadata for InviteMembersError

Source§

impl ProvideErrorMetadata for ListAggregatorsV2Error

Source§

impl ProvideErrorMetadata for ListAutomationRulesError

Source§

impl ProvideErrorMetadata for ListAutomationRulesV2Error

Source§

impl ProvideErrorMetadata for ListConfigurationPoliciesError

Source§

impl ProvideErrorMetadata for ListConfigurationPolicyAssociationsError

Source§

impl ProvideErrorMetadata for ListConnectorsV2Error

Source§

impl ProvideErrorMetadata for ListEnabledProductsForImportError

Source§

impl ProvideErrorMetadata for ListFindingAggregatorsError

Source§

impl ProvideErrorMetadata for ListInvitationsError

Source§

impl ProvideErrorMetadata for ListMembersError

Source§

impl ProvideErrorMetadata for ListOrganizationAdminAccountsError

Source§

impl ProvideErrorMetadata for ListSecurityControlDefinitionsError

Source§

impl ProvideErrorMetadata for ListStandardsControlAssociationsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for StartConfigurationPolicyAssociationError

Source§

impl ProvideErrorMetadata for StartConfigurationPolicyDisassociationError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateActionTargetError

Source§

impl ProvideErrorMetadata for UpdateAggregatorV2Error

Source§

impl ProvideErrorMetadata for UpdateAutomationRuleV2Error

Source§

impl ProvideErrorMetadata for UpdateConfigurationPolicyError

Source§

impl ProvideErrorMetadata for UpdateConnectorV2Error

Source§

impl ProvideErrorMetadata for UpdateFindingAggregatorError

Source§

impl ProvideErrorMetadata for UpdateFindingsError

Source§

impl ProvideErrorMetadata for UpdateInsightError

Source§

impl ProvideErrorMetadata for UpdateOrganizationConfigurationError

Source§

impl ProvideErrorMetadata for UpdateSecurityControlError

Source§

impl ProvideErrorMetadata for UpdateSecurityHubConfigurationError

Source§

impl ProvideErrorMetadata for UpdateStandardsControlError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for InternalException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for InvalidAccessException

Source§

impl ProvideErrorMetadata for InvalidInputException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for ResourceConflictException

Source§

impl ProvideErrorMetadata for ResourceInUseException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ThrottlingException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata