#[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.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.