Trait aws_sdk_datasync::error::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 AddStorageSystemError

source§

impl ProvideErrorMetadata for CancelTaskExecutionError

source§

impl ProvideErrorMetadata for CreateAgentError

source§

impl ProvideErrorMetadata for CreateLocationAzureBlobError

source§

impl ProvideErrorMetadata for CreateLocationEfsError

source§

impl ProvideErrorMetadata for CreateLocationFsxLustreError

source§

impl ProvideErrorMetadata for CreateLocationFsxOntapError

source§

impl ProvideErrorMetadata for CreateLocationFsxOpenZfsError

source§

impl ProvideErrorMetadata for CreateLocationFsxWindowsError

source§

impl ProvideErrorMetadata for CreateLocationHdfsError

source§

impl ProvideErrorMetadata for CreateLocationNfsError

source§

impl ProvideErrorMetadata for CreateLocationObjectStorageError

source§

impl ProvideErrorMetadata for CreateLocationS3Error

source§

impl ProvideErrorMetadata for CreateLocationSmbError

source§

impl ProvideErrorMetadata for CreateTaskError

source§

impl ProvideErrorMetadata for DeleteAgentError

source§

impl ProvideErrorMetadata for DeleteLocationError

source§

impl ProvideErrorMetadata for DeleteTaskError

source§

impl ProvideErrorMetadata for DescribeAgentError

source§

impl ProvideErrorMetadata for DescribeDiscoveryJobError

source§

impl ProvideErrorMetadata for DescribeLocationAzureBlobError

source§

impl ProvideErrorMetadata for DescribeLocationEfsError

source§

impl ProvideErrorMetadata for DescribeLocationFsxLustreError

source§

impl ProvideErrorMetadata for DescribeLocationFsxOntapError

source§

impl ProvideErrorMetadata for DescribeLocationFsxOpenZfsError

source§

impl ProvideErrorMetadata for DescribeLocationFsxWindowsError

source§

impl ProvideErrorMetadata for DescribeLocationHdfsError

source§

impl ProvideErrorMetadata for DescribeLocationNfsError

source§

impl ProvideErrorMetadata for DescribeLocationObjectStorageError

source§

impl ProvideErrorMetadata for DescribeLocationS3Error

source§

impl ProvideErrorMetadata for DescribeLocationSmbError

source§

impl ProvideErrorMetadata for DescribeStorageSystemError

source§

impl ProvideErrorMetadata for DescribeStorageSystemResourceMetricsError

source§

impl ProvideErrorMetadata for DescribeStorageSystemResourcesError

source§

impl ProvideErrorMetadata for DescribeTaskError

source§

impl ProvideErrorMetadata for DescribeTaskExecutionError

source§

impl ProvideErrorMetadata for GenerateRecommendationsError

source§

impl ProvideErrorMetadata for ListAgentsError

source§

impl ProvideErrorMetadata for ListDiscoveryJobsError

source§

impl ProvideErrorMetadata for ListLocationsError

source§

impl ProvideErrorMetadata for ListStorageSystemsError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for ListTaskExecutionsError

source§

impl ProvideErrorMetadata for ListTasksError

source§

impl ProvideErrorMetadata for RemoveStorageSystemError

source§

impl ProvideErrorMetadata for StartDiscoveryJobError

source§

impl ProvideErrorMetadata for StartTaskExecutionError

source§

impl ProvideErrorMetadata for StopDiscoveryJobError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateAgentError

source§

impl ProvideErrorMetadata for UpdateDiscoveryJobError

source§

impl ProvideErrorMetadata for UpdateLocationAzureBlobError

source§

impl ProvideErrorMetadata for UpdateLocationHdfsError

source§

impl ProvideErrorMetadata for UpdateLocationNfsError

source§

impl ProvideErrorMetadata for UpdateLocationObjectStorageError

source§

impl ProvideErrorMetadata for UpdateLocationSmbError

source§

impl ProvideErrorMetadata for UpdateStorageSystemError

source§

impl ProvideErrorMetadata for UpdateTaskError

source§

impl ProvideErrorMetadata for UpdateTaskExecutionError

source§

impl ProvideErrorMetadata for InternalException

source§

impl ProvideErrorMetadata for InvalidRequestException

source§

impl ProvideErrorMetadata for ErrorMetadata