Type Alias aws_sdk_s3::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,
impl<E, R> ProvideErrorMetadata for SdkError<E, R>where E: ProvideErrorMetadata,
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
source§impl<E, R> RequestId for SdkError<E, R>where
R: HttpHeaders,
impl<E, R> RequestId for SdkError<E, R>where R: HttpHeaders,
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.source§impl<E, R> RequestIdExt for SdkError<E, R>where
R: HttpHeaders,
impl<E, R> RequestIdExt for SdkError<E, R>where R: HttpHeaders,
source§fn extended_request_id(&self) -> Option<&str>
fn extended_request_id(&self) -> Option<&str>
Returns the S3 Extended Request ID necessary when contacting AWS Support.