Creates a structured transport error.
name defaults to the cause's string name, or
AftermathTransportError. message defaults to the cause's string
message, or a message derived from kind and status. Optional fields
are assigned only when provided.
The transport category.
The message, status, retry metadata, source error, and abort classification.
OptionalabortSource?: AftermathAbortSourceWhether an abort-like error came from the caller or a timeout.
Optionalcause?: unknownThe original thrown value.
Optionalcode?: stringThe source error code.
Optionalmessage?: stringOverrides the derived error message.
Optionalname?: stringOverrides the derived error name.
OptionalretryAfterMs?: numberThe retry delay in milliseconds.
Optionalstatus?: numberThe HTTP response status.
Optional ReadonlyabortThe source of an abort or timeout classification.
Optional ReadonlycauseThe original thrown value, stored as a non-enumerable property.
Optional ReadonlycodeThe transport or runtime error code, when the source supplied one.
ReadonlykindThe normalized transport category.
Optional ReadonlyretryThe supplied retry delay in milliseconds, when present.
Optional ReadonlystatusThe HTTP status for an http error, when available.
An Error with structured information about an Aftermath transport failure.
The constructor preserves an explicit message first, then a string
cause.message, and finally a kind-specific default. The original cause is stored as a non-enumerablecauseproperty when supplied. Defaults areAftermath HTTP request failed(or that text withwith status N) forhttp,Aftermath network request failedfornetwork,Aftermath request was abortedforabort,Aftermath request timed outfortimeout, andAftermath response could not be decodedfordecode.