Type Alias aws_sdk_dynamodb::error::SdkError

source ·
pub type SdkError<E, R = HttpResponse> = SdkError<E, R>;
Expand description

Error type returned by the client.

Aliased Type§

enum SdkError<E, R = HttpResponse> {
    ConstructionFailure(ConstructionFailure),
    TimeoutError(TimeoutError),
    DispatchFailure(DispatchFailure),
    ResponseError(ResponseError<R>),
    ServiceError(ServiceError<E, R>),
}

Variants§

§

ConstructionFailure(ConstructionFailure)

The request failed during construction. It was not dispatched over the network.

§

TimeoutError(TimeoutError)

The request failed due to a timeout. The request MAY have been sent and received.

§

DispatchFailure(DispatchFailure)

The request failed during dispatch. An HTTP response was not received. The request MAY have been sent.

§

ResponseError(ResponseError<R>)

A response was received but it was not parseable according the the protocol (for example the server hung up without sending a complete response)

§

ServiceError(ServiceError<E, R>)

An error response was received from the service

Trait Implementations§

source§

impl<E, R> ProvideErrorMetadata for SdkError<E, R>where E: ProvideErrorMetadata,

source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
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.
source§

impl<E, R> RequestId for SdkError<E, R>where R: HttpHeaders,

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.