Enum aws_smithy_types::retry::ErrorKind
source · #[non_exhaustive]
pub enum ErrorKind {
TransientError,
ThrottlingError,
ServerError,
ClientError,
}
Expand description
Type of error that occurred when making a request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TransientError
A connection-level error.
A TransientError
can represent conditions such as socket timeouts, socket connection errors, or TLS negotiation timeouts.
TransientError
is not modeled by Smithy and is instead determined through client-specific heuristics and response status codes.
Typically these should never be applied for non-idempotent request types since in this scenario, it’s impossible to know whether the operation had a side effect on the server.
TransientErrors are not currently modeled. They are determined based on specific provider level errors & response status code.
ThrottlingError
An error where the server explicitly told the client to back off, such as a 429 or 503 HTTP error.
ServerError
Server error that isn’t explicitly throttling but is considered by the client to be something that should be retried.
ClientError
Doesn’t count against any budgets. This could be something like a 401 challenge in Http.