isTransportFailure
function isTransportFailure(err): boolean;Defined in: core/src/errors.ts:321
A transport fault: the socket died before or during the response, so there is NO status and no body for the patterns below to read.
The chain is walked because the useful code is rarely on the thrown error:
it sits on cause, sometimes several wrappers deep. Without this walk every
network blip classifies as permanent, and a long run dies on its first
hiccup, which is the single likeliest way to lose a minutes-long job.
A deliberate abort short-circuits to false: the caller pressed Stop, and retrying that just re-fails against the same dead signal.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
err |
unknown |
Returns
Section titled “Returns”boolean