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