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 AbortEnvironmentUpdateError

source§

impl ProvideErrorMetadata for ApplyEnvironmentManagedActionError

source§

impl ProvideErrorMetadata for AssociateEnvironmentOperationsRoleError

source§

impl ProvideErrorMetadata for CheckDNSAvailabilityError

source§

impl ProvideErrorMetadata for ComposeEnvironmentsError

source§

impl ProvideErrorMetadata for CreateApplicationError

source§

impl ProvideErrorMetadata for CreateApplicationVersionError

source§

impl ProvideErrorMetadata for CreateConfigurationTemplateError

source§

impl ProvideErrorMetadata for CreateEnvironmentError

source§

impl ProvideErrorMetadata for CreatePlatformVersionError

source§

impl ProvideErrorMetadata for CreateStorageLocationError

source§

impl ProvideErrorMetadata for DeleteApplicationError

source§

impl ProvideErrorMetadata for DeleteApplicationVersionError

source§

impl ProvideErrorMetadata for DeleteConfigurationTemplateError

source§

impl ProvideErrorMetadata for DeleteEnvironmentConfigurationError

source§

impl ProvideErrorMetadata for DeletePlatformVersionError

source§

impl ProvideErrorMetadata for DescribeAccountAttributesError

source§

impl ProvideErrorMetadata for DescribeApplicationVersionsError

source§

impl ProvideErrorMetadata for DescribeApplicationsError

source§

impl ProvideErrorMetadata for DescribeConfigurationOptionsError

source§

impl ProvideErrorMetadata for DescribeConfigurationSettingsError

source§

impl ProvideErrorMetadata for DescribeEnvironmentHealthError

source§

impl ProvideErrorMetadata for DescribeEnvironmentManagedActionHistoryError

source§

impl ProvideErrorMetadata for DescribeEnvironmentManagedActionsError

source§

impl ProvideErrorMetadata for DescribeEnvironmentResourcesError

source§

impl ProvideErrorMetadata for DescribeEnvironmentsError

source§

impl ProvideErrorMetadata for DescribeEventsError

source§

impl ProvideErrorMetadata for DescribeInstancesHealthError

source§

impl ProvideErrorMetadata for DescribePlatformVersionError

source§

impl ProvideErrorMetadata for DisassociateEnvironmentOperationsRoleError

source§

impl ProvideErrorMetadata for ListAvailableSolutionStacksError

source§

impl ProvideErrorMetadata for ListPlatformBranchesError

source§

impl ProvideErrorMetadata for ListPlatformVersionsError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for RebuildEnvironmentError

source§

impl ProvideErrorMetadata for RequestEnvironmentInfoError

source§

impl ProvideErrorMetadata for RestartAppServerError

source§

impl ProvideErrorMetadata for RetrieveEnvironmentInfoError

source§

impl ProvideErrorMetadata for SwapEnvironmentCNAMEsError

source§

impl ProvideErrorMetadata for TerminateEnvironmentError

source§

impl ProvideErrorMetadata for UpdateApplicationError

source§

impl ProvideErrorMetadata for UpdateApplicationResourceLifecycleError

source§

impl ProvideErrorMetadata for UpdateApplicationVersionError

source§

impl ProvideErrorMetadata for UpdateConfigurationTemplateError

source§

impl ProvideErrorMetadata for UpdateEnvironmentError

source§

impl ProvideErrorMetadata for UpdateTagsForResourceError

source§

impl ProvideErrorMetadata for ValidateConfigurationSettingsError

source§

impl ProvideErrorMetadata for CodeBuildNotInServiceRegionException

source§

impl ProvideErrorMetadata for ElasticBeanstalkServiceException

source§

impl ProvideErrorMetadata for InsufficientPrivilegesException

source§

impl ProvideErrorMetadata for InvalidRequestException

source§

impl ProvideErrorMetadata for ManagedActionInvalidStateException

source§

impl ProvideErrorMetadata for OperationInProgressException

source§

impl ProvideErrorMetadata for PlatformVersionStillReferencedException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for ResourceTypeNotSupportedException

source§

impl ProvideErrorMetadata for S3LocationNotInServiceRegionException

source§

impl ProvideErrorMetadata for S3SubscriptionRequiredException

source§

impl ProvideErrorMetadata for SourceBundleDeletionException

source§

impl ProvideErrorMetadata for TooManyApplicationVersionsException

source§

impl ProvideErrorMetadata for TooManyApplicationsException

source§

impl ProvideErrorMetadata for TooManyBucketsException

source§

impl ProvideErrorMetadata for TooManyConfigurationTemplatesException

source§

impl ProvideErrorMetadata for TooManyEnvironmentsException

source§

impl ProvideErrorMetadata for TooManyPlatformsException

source§

impl ProvideErrorMetadata for TooManyTagsException

source§

impl ProvideErrorMetadata for ErrorMetadata