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 ActivateOrganizationsAccessError

source§

impl ProvideErrorMetadata for ActivateTypeError

source§

impl ProvideErrorMetadata for BatchDescribeTypeConfigurationsError

source§

impl ProvideErrorMetadata for CancelUpdateStackError

source§

impl ProvideErrorMetadata for ContinueUpdateRollbackError

source§

impl ProvideErrorMetadata for CreateChangeSetError

source§

impl ProvideErrorMetadata for CreateGeneratedTemplateError

source§

impl ProvideErrorMetadata for CreateStackError

source§

impl ProvideErrorMetadata for CreateStackInstancesError

source§

impl ProvideErrorMetadata for CreateStackSetError

source§

impl ProvideErrorMetadata for DeactivateOrganizationsAccessError

source§

impl ProvideErrorMetadata for DeactivateTypeError

source§

impl ProvideErrorMetadata for DeleteChangeSetError

source§

impl ProvideErrorMetadata for DeleteGeneratedTemplateError

source§

impl ProvideErrorMetadata for DeleteStackError

source§

impl ProvideErrorMetadata for DeleteStackInstancesError

source§

impl ProvideErrorMetadata for DeleteStackSetError

source§

impl ProvideErrorMetadata for DeregisterTypeError

source§

impl ProvideErrorMetadata for DescribeAccountLimitsError

source§

impl ProvideErrorMetadata for DescribeChangeSetError

source§

impl ProvideErrorMetadata for DescribeChangeSetHooksError

source§

impl ProvideErrorMetadata for DescribeGeneratedTemplateError

source§

impl ProvideErrorMetadata for DescribeOrganizationsAccessError

source§

impl ProvideErrorMetadata for DescribePublisherError

source§

impl ProvideErrorMetadata for DescribeResourceScanError

source§

impl ProvideErrorMetadata for DescribeStackDriftDetectionStatusError

source§

impl ProvideErrorMetadata for DescribeStackEventsError

source§

impl ProvideErrorMetadata for DescribeStackInstanceError

source§

impl ProvideErrorMetadata for DescribeStackResourceError

source§

impl ProvideErrorMetadata for DescribeStackResourceDriftsError

source§

impl ProvideErrorMetadata for DescribeStackResourcesError

source§

impl ProvideErrorMetadata for DescribeStackSetError

source§

impl ProvideErrorMetadata for DescribeStackSetOperationError

source§

impl ProvideErrorMetadata for DescribeStacksError

source§

impl ProvideErrorMetadata for DescribeTypeError

source§

impl ProvideErrorMetadata for DescribeTypeRegistrationError

source§

impl ProvideErrorMetadata for DetectStackDriftError

source§

impl ProvideErrorMetadata for DetectStackResourceDriftError

source§

impl ProvideErrorMetadata for DetectStackSetDriftError

source§

impl ProvideErrorMetadata for EstimateTemplateCostError

source§

impl ProvideErrorMetadata for ExecuteChangeSetError

source§

impl ProvideErrorMetadata for GetGeneratedTemplateError

source§

impl ProvideErrorMetadata for GetStackPolicyError

source§

impl ProvideErrorMetadata for GetTemplateError

source§

impl ProvideErrorMetadata for GetTemplateSummaryError

source§

impl ProvideErrorMetadata for ImportStacksToStackSetError

source§

impl ProvideErrorMetadata for ListChangeSetsError

source§

impl ProvideErrorMetadata for ListExportsError

source§

impl ProvideErrorMetadata for ListGeneratedTemplatesError

source§

impl ProvideErrorMetadata for ListImportsError

source§

impl ProvideErrorMetadata for ListResourceScanRelatedResourcesError

source§

impl ProvideErrorMetadata for ListResourceScanResourcesError

source§

impl ProvideErrorMetadata for ListResourceScansError

source§

impl ProvideErrorMetadata for ListStackInstanceResourceDriftsError

source§

impl ProvideErrorMetadata for ListStackInstancesError

source§

impl ProvideErrorMetadata for ListStackResourcesError

source§

impl ProvideErrorMetadata for ListStackSetAutoDeploymentTargetsError

source§

impl ProvideErrorMetadata for ListStackSetOperationResultsError

source§

impl ProvideErrorMetadata for ListStackSetOperationsError

source§

impl ProvideErrorMetadata for ListStackSetsError

source§

impl ProvideErrorMetadata for ListStacksError

source§

impl ProvideErrorMetadata for ListTypeRegistrationsError

source§

impl ProvideErrorMetadata for ListTypeVersionsError

source§

impl ProvideErrorMetadata for ListTypesError

source§

impl ProvideErrorMetadata for PublishTypeError

source§

impl ProvideErrorMetadata for RecordHandlerProgressError

source§

impl ProvideErrorMetadata for RegisterPublisherError

source§

impl ProvideErrorMetadata for RegisterTypeError

source§

impl ProvideErrorMetadata for RollbackStackError

source§

impl ProvideErrorMetadata for SetStackPolicyError

source§

impl ProvideErrorMetadata for SetTypeConfigurationError

source§

impl ProvideErrorMetadata for SetTypeDefaultVersionError

source§

impl ProvideErrorMetadata for SignalResourceError

source§

impl ProvideErrorMetadata for StartResourceScanError

source§

impl ProvideErrorMetadata for StopStackSetOperationError

source§

impl ProvideErrorMetadata for TestTypeError

source§

impl ProvideErrorMetadata for UpdateGeneratedTemplateError

source§

impl ProvideErrorMetadata for UpdateStackError

source§

impl ProvideErrorMetadata for UpdateStackInstancesError

source§

impl ProvideErrorMetadata for UpdateStackSetError

source§

impl ProvideErrorMetadata for UpdateTerminationProtectionError

source§

impl ProvideErrorMetadata for ValidateTemplateError

source§

impl ProvideErrorMetadata for AlreadyExistsException

source§

impl ProvideErrorMetadata for CfnRegistryException

source§

impl ProvideErrorMetadata for ChangeSetNotFoundException

source§

impl ProvideErrorMetadata for ConcurrentResourcesLimitExceededException

source§

impl ProvideErrorMetadata for CreatedButModifiedException

source§

impl ProvideErrorMetadata for GeneratedTemplateNotFoundException

source§

impl ProvideErrorMetadata for InsufficientCapabilitiesException

source§

impl ProvideErrorMetadata for InvalidChangeSetStatusException

source§

impl ProvideErrorMetadata for InvalidOperationException

source§

impl ProvideErrorMetadata for InvalidStateTransitionException

source§

impl ProvideErrorMetadata for LimitExceededException

source§

impl ProvideErrorMetadata for NameAlreadyExistsException

source§

impl ProvideErrorMetadata for OperationIdAlreadyExistsException

source§

impl ProvideErrorMetadata for OperationInProgressException

source§

impl ProvideErrorMetadata for OperationNotFoundException

source§

impl ProvideErrorMetadata for OperationStatusCheckFailedException

source§

impl ProvideErrorMetadata for ResourceScanInProgressException

source§

impl ProvideErrorMetadata for ResourceScanLimitExceededException

source§

impl ProvideErrorMetadata for ResourceScanNotFoundException

source§

impl ProvideErrorMetadata for StackInstanceNotFoundException

source§

impl ProvideErrorMetadata for StackNotFoundException

source§

impl ProvideErrorMetadata for StackSetNotEmptyException

source§

impl ProvideErrorMetadata for StackSetNotFoundException

source§

impl ProvideErrorMetadata for StaleRequestException

source§

impl ProvideErrorMetadata for TokenAlreadyExistsException

source§

impl ProvideErrorMetadata for TypeConfigurationNotFoundException

source§

impl ProvideErrorMetadata for TypeNotFoundException

source§

impl ProvideErrorMetadata for ErrorMetadata