RetryReason enum
The normalized category of a transient failure that a RetryStrategy may choose to retry.
Authentication challenges (a genuine 401) and the DPoP use_dpop_nonce
handshake are handled by dedicated paths and are never surfaced as a
RetryReason.
Values
- timeout → const RetryReason
-
The request timed out after it was sent, so the server may or may not have processed it.
- serverError → const RetryReason
-
The server responded with a
5xxstatus (e.g.500). For a request with side effects the server may already have applied them. - rateLimited → const RetryReason
-
The server responded with
429 Too Many Requests. The request was rejected before it was processed, so retrying is safe. - network → const RetryReason
-
A transport-level failure (connection refused, reset, DNS failure, …). Whether the request reached the server depends on the underlying error.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
RetryReason> - A constant List of the values in this enum, in order of their declaration.