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 AssociateConfigurationItemsToApplicationError

source§

impl ProvideErrorMetadata for BatchDeleteAgentsError

source§

impl ProvideErrorMetadata for BatchDeleteImportDataError

source§

impl ProvideErrorMetadata for CreateApplicationError

source§

impl ProvideErrorMetadata for CreateTagsError

source§

impl ProvideErrorMetadata for DeleteApplicationsError

source§

impl ProvideErrorMetadata for DeleteTagsError

source§

impl ProvideErrorMetadata for DescribeAgentsError

source§

impl ProvideErrorMetadata for DescribeBatchDeleteConfigurationTaskError

source§

impl ProvideErrorMetadata for DescribeConfigurationsError

source§

impl ProvideErrorMetadata for DescribeContinuousExportsError

source§

impl ProvideErrorMetadata for DescribeExportConfigurationsError

source§

impl ProvideErrorMetadata for DescribeExportTasksError

source§

impl ProvideErrorMetadata for DescribeImportTasksError

source§

impl ProvideErrorMetadata for DescribeTagsError

source§

impl ProvideErrorMetadata for DisassociateConfigurationItemsFromApplicationError

source§

impl ProvideErrorMetadata for ExportConfigurationsError

source§

impl ProvideErrorMetadata for GetDiscoverySummaryError

source§

impl ProvideErrorMetadata for ListConfigurationsError

source§

impl ProvideErrorMetadata for ListServerNeighborsError

source§

impl ProvideErrorMetadata for StartBatchDeleteConfigurationTaskError

source§

impl ProvideErrorMetadata for StartContinuousExportError

source§

impl ProvideErrorMetadata for StartDataCollectionByAgentIdsError

source§

impl ProvideErrorMetadata for StartExportTaskError

source§

impl ProvideErrorMetadata for StartImportTaskError

source§

impl ProvideErrorMetadata for StopContinuousExportError

source§

impl ProvideErrorMetadata for StopDataCollectionByAgentIdsError

source§

impl ProvideErrorMetadata for UpdateApplicationError

source§

impl ProvideErrorMetadata for AuthorizationErrorException

source§

impl ProvideErrorMetadata for ConflictErrorException

source§

impl ProvideErrorMetadata for HomeRegionNotSetException

source§

impl ProvideErrorMetadata for InvalidParameterException

source§

impl ProvideErrorMetadata for InvalidParameterValueException

source§

impl ProvideErrorMetadata for LimitExceededException

source§

impl ProvideErrorMetadata for OperationNotPermittedException

source§

impl ProvideErrorMetadata for ResourceInUseException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for ServerInternalErrorException

source§

impl ProvideErrorMetadata for ErrorMetadata