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:

  1. RequestConstructionError: Errors where the SDK never attempted to dispatch the underlying http::Request. These represent errors that occurred during the request construction pipeline. These generally stem from configuration issues.
  2. 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 an http::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

Formats the value using the given formatter. Read more

Convert a SendOperationError into an SdkError

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more