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 CancelImportTaskError

source§

impl ProvideErrorMetadata for CancelQueryError

source§

impl ProvideErrorMetadata for CreateGraphError

source§

impl ProvideErrorMetadata for CreateGraphSnapshotError

source§

impl ProvideErrorMetadata for CreateGraphUsingImportTaskError

source§

impl ProvideErrorMetadata for CreatePrivateGraphEndpointError

source§

impl ProvideErrorMetadata for DeleteGraphError

source§

impl ProvideErrorMetadata for DeleteGraphSnapshotError

source§

impl ProvideErrorMetadata for DeletePrivateGraphEndpointError

source§

impl ProvideErrorMetadata for ExecuteQueryError

source§

impl ProvideErrorMetadata for GetGraphError

source§

impl ProvideErrorMetadata for GetGraphSnapshotError

source§

impl ProvideErrorMetadata for GetGraphSummaryError

source§

impl ProvideErrorMetadata for GetImportTaskError

source§

impl ProvideErrorMetadata for GetPrivateGraphEndpointError

source§

impl ProvideErrorMetadata for GetQueryError

source§

impl ProvideErrorMetadata for ListGraphSnapshotsError

source§

impl ProvideErrorMetadata for ListGraphsError

source§

impl ProvideErrorMetadata for ListImportTasksError

source§

impl ProvideErrorMetadata for ListPrivateGraphEndpointsError

source§

impl ProvideErrorMetadata for ListQueriesError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for ResetGraphError

source§

impl ProvideErrorMetadata for RestoreGraphFromSnapshotError

source§

impl ProvideErrorMetadata for StartImportTaskError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateGraphError

source§

impl ProvideErrorMetadata for AccessDeniedException

source§

impl ProvideErrorMetadata for ConflictException

source§

impl ProvideErrorMetadata for InternalServerException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

source§

impl ProvideErrorMetadata for ThrottlingException

source§

impl ProvideErrorMetadata for UnprocessableException

source§

impl ProvideErrorMetadata for ValidationException

source§

impl ProvideErrorMetadata for ErrorMetadata