pub enum SendOperationError {
RequestConstructionError(BoxError),
RequestDispatchError(ConnectorError),
}
Expand description
An Error Occurred During the process of sending an Operation
The variants are split to enable the final SdkError to differentiate between two types of errors:
RequestConstructionError
: Errors where the SDK never attempted to dispatch the underlyinghttp::Request
. These represent errors that occurred during the request construction pipeline. These generally stem from configuration issues.RequestDispatchError
: Errors where the inner tower service failed (e.g. because the hostname couldn’t be resolved, connection errors, socket hangup etc.). In this case, we don’t know how much of the request was actually sent to the client. We only know that we never got back anhttp::Response
(and instead got an error).
SendOperationError
is currently defined only in aws-smithy-http-tower
because it may be removed
or replaced with SdkError
in the future.
SendOperationError
MAY be moved to a private module in the future.
Variants§
RequestConstructionError(BoxError)
The request could not be constructed
These errors usually stem from configuration issues (e.g. no region, bad credential provider, etc.)
RequestDispatchError(ConnectorError)
The request could not be dispatched
Trait Implementations§
source§impl Debug for SendOperationError
impl Debug for SendOperationError
source§impl<E> From<SendOperationError> for SdkError<E>
impl<E> From<SendOperationError> for SdkError<E>
Convert a SendOperationError
into an SdkError
source§fn from(err: SendOperationError) -> Self
fn from(err: SendOperationError) -> Self
Converts to this type from the input type.