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>

Implementors§

source§

impl ProvideErrorMetadata for Error

source§

impl ProvideErrorMetadata for AddLayerVersionPermissionError

source§

impl ProvideErrorMetadata for AddPermissionError

source§

impl ProvideErrorMetadata for CreateAliasError

source§

impl ProvideErrorMetadata for CreateCodeSigningConfigError

source§

impl ProvideErrorMetadata for CreateEventSourceMappingError

source§

impl ProvideErrorMetadata for CreateFunctionError

source§

impl ProvideErrorMetadata for CreateFunctionUrlConfigError

source§

impl ProvideErrorMetadata for DeleteAliasError

source§

impl ProvideErrorMetadata for DeleteCodeSigningConfigError

source§

impl ProvideErrorMetadata for DeleteEventSourceMappingError

source§

impl ProvideErrorMetadata for DeleteFunctionError

source§

impl ProvideErrorMetadata for DeleteFunctionCodeSigningConfigError

source§

impl ProvideErrorMetadata for DeleteFunctionConcurrencyError

source§

impl ProvideErrorMetadata for DeleteFunctionEventInvokeConfigError

source§

impl ProvideErrorMetadata for DeleteFunctionUrlConfigError

source§

impl ProvideErrorMetadata for DeleteLayerVersionError

source§

impl ProvideErrorMetadata for DeleteProvisionedConcurrencyConfigError

source§

impl ProvideErrorMetadata for GetAccountSettingsError

source§

impl ProvideErrorMetadata for GetAliasError

source§

impl ProvideErrorMetadata for GetCodeSigningConfigError

source§

impl ProvideErrorMetadata for GetEventSourceMappingError

source§

impl ProvideErrorMetadata for GetFunctionError

source§

impl ProvideErrorMetadata for GetFunctionCodeSigningConfigError

source§

impl ProvideErrorMetadata for GetFunctionConcurrencyError

source§

impl ProvideErrorMetadata for GetFunctionConfigurationError

source§

impl ProvideErrorMetadata for GetFunctionEventInvokeConfigError

source§

impl ProvideErrorMetadata for GetFunctionUrlConfigError

source§

impl ProvideErrorMetadata for GetLayerVersionError

source§

impl ProvideErrorMetadata for GetLayerVersionByArnError

source§

impl ProvideErrorMetadata for GetLayerVersionPolicyError

source§

impl ProvideErrorMetadata for GetPolicyError

source§

impl ProvideErrorMetadata for GetProvisionedConcurrencyConfigError

source§

impl ProvideErrorMetadata for GetRuntimeManagementConfigError

source§

impl ProvideErrorMetadata for InvokeError

source§

impl ProvideErrorMetadata for InvokeAsyncError

source§

impl ProvideErrorMetadata for InvokeWithResponseStreamError

source§

impl ProvideErrorMetadata for ListAliasesError

source§

impl ProvideErrorMetadata for ListCodeSigningConfigsError

source§

impl ProvideErrorMetadata for ListEventSourceMappingsError

source§

impl ProvideErrorMetadata for ListFunctionEventInvokeConfigsError

source§

impl ProvideErrorMetadata for ListFunctionUrlConfigsError

source§

impl ProvideErrorMetadata for ListFunctionsError

source§

impl ProvideErrorMetadata for ListFunctionsByCodeSigningConfigError

source§

impl ProvideErrorMetadata for ListLayerVersionsError

source§

impl ProvideErrorMetadata for ListLayersError

source§

impl ProvideErrorMetadata for ListProvisionedConcurrencyConfigsError

source§

impl ProvideErrorMetadata for ListTagsError

source§

impl ProvideErrorMetadata for ListVersionsByFunctionError

source§

impl ProvideErrorMetadata for PublishLayerVersionError

source§

impl ProvideErrorMetadata for PublishVersionError

source§

impl ProvideErrorMetadata for PutFunctionCodeSigningConfigError

source§

impl ProvideErrorMetadata for PutFunctionConcurrencyError

source§

impl ProvideErrorMetadata for PutFunctionEventInvokeConfigError

source§

impl ProvideErrorMetadata for PutProvisionedConcurrencyConfigError

source§

impl ProvideErrorMetadata for PutRuntimeManagementConfigError

source§

impl ProvideErrorMetadata for RemoveLayerVersionPermissionError

source§

impl ProvideErrorMetadata for RemovePermissionError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateAliasError

source§

impl ProvideErrorMetadata for UpdateCodeSigningConfigError

source§

impl ProvideErrorMetadata for UpdateEventSourceMappingError

source§

impl ProvideErrorMetadata for UpdateFunctionCodeError

source§

impl ProvideErrorMetadata for UpdateFunctionConfigurationError

source§

impl ProvideErrorMetadata for UpdateFunctionEventInvokeConfigError

source§

impl ProvideErrorMetadata for UpdateFunctionUrlConfigError

source§

impl ProvideErrorMetadata for InvokeWithResponseStreamResponseEventError

source§

impl ProvideErrorMetadata for CodeSigningConfigNotFoundException

source§

impl ProvideErrorMetadata for CodeStorageExceededException

source§

impl ProvideErrorMetadata for CodeVerificationFailedException

source§

impl ProvideErrorMetadata for Ec2AccessDeniedException

source§

impl ProvideErrorMetadata for Ec2ThrottledException

source§

impl ProvideErrorMetadata for Ec2UnexpectedException

source§

impl ProvideErrorMetadata for EfsMountConnectivityException

source§

impl ProvideErrorMetadata for EfsMountFailureException

source§

impl ProvideErrorMetadata for EfsMountTimeoutException

source§

impl ProvideErrorMetadata for EfsioException

source§

impl ProvideErrorMetadata for EniLimitReachedException

source§

impl ProvideErrorMetadata for InvalidCodeSignatureException

source§

impl ProvideErrorMetadata for InvalidParameterValueException

source§

impl ProvideErrorMetadata for InvalidRequestContentException

source§

impl ProvideErrorMetadata for InvalidRuntimeException

source§

impl ProvideErrorMetadata for InvalidSecurityGroupIdException

source§

impl ProvideErrorMetadata for InvalidSubnetIdException

source§

impl ProvideErrorMetadata for InvalidZipFileException

source§

impl ProvideErrorMetadata for KmsAccessDeniedException

source§

impl ProvideErrorMetadata for KmsDisabledException

source§

impl ProvideErrorMetadata for KmsInvalidStateException

source§

impl ProvideErrorMetadata for KmsNotFoundException

source§

impl ProvideErrorMetadata for PolicyLengthExceededException

source§

impl ProvideErrorMetadata for PreconditionFailedException

source§

impl ProvideErrorMetadata for ProvisionedConcurrencyConfigNotFoundException

source§

impl ProvideErrorMetadata for RecursiveInvocationException

source§

impl ProvideErrorMetadata for RequestTooLargeException

source§

impl ProvideErrorMetadata for ResourceConflictException

source§

impl ProvideErrorMetadata for ResourceInUseException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for ResourceNotReadyException

source§

impl ProvideErrorMetadata for ServiceException

source§

impl ProvideErrorMetadata for SnapStartException

source§

impl ProvideErrorMetadata for SnapStartNotReadyException

source§

impl ProvideErrorMetadata for SnapStartTimeoutException

source§

impl ProvideErrorMetadata for SubnetIpAddressLimitReachedException

source§

impl ProvideErrorMetadata for TooManyRequestsException

source§

impl ProvideErrorMetadata for UnsupportedMediaTypeException

source§

impl ProvideErrorMetadata for ErrorMetadata