RetryError class
Retrying stopped (AIMUX_E_RETRY): reason says why, message carries
the composed summary ("Failed after N attempts…"), and errors keeps the
per-attempt history, oldest first — each entry is itself a fully decoded
AimuxException (an APICallError keeps its whole detail set; a nested
RetryError recurses).
- Inheritance
-
- Object
- AimuxException
- RetryError
Constructors
-
RetryError(String message, {required RetryErrorReason reason, required List<
AimuxException> errors})
Properties
- code → int
-
Machine-readable error code (AimuxErrorCode constants).
finalinherited
- codeName → String
-
Core
error_type()name for code.no setterinherited -
errors
→ List<
AimuxException> -
Per-attempt errors, oldest first; never empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastError → AimuxException
-
The final attempt.
no setter
- message → String
-
Human-readable failure text.
finalinherited
- reason → RetryErrorReason
-
final
- retryable → bool
-
Whether retrying may help — the
AiMuxErrorverdict, carried across the C ABI. Not derivable from status: a transport failure (request went out, connection reset) and a missing API key (request never went out) both reportstatus == -1and disagree here.finalinherited - retryMs → int
-
Rate-limit hint in ms;
-1if none;0means retry immediately.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
HTTP status when known; otherwise
-1.finalinherited
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