Enum aws_smithy_http_tower::SendOperationError[][src]

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.)

Tuple Fields of RequestConstructionError

0: BoxError
RequestDispatchError(ConnectorError)

The request could not be dispatched

Tuple Fields of RequestDispatchError

0: ConnectorError

Trait Implementations

Formats the value using the given formatter. Read more

Convert a SendOperationError into an SdkError

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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