Skip to main content

Function: classifyTransportError()

function classifyTransportError(err): ClassifiedError;

Defined in: classify.ts:158

Maps anything a transport (or the storage layer, or a serialisation bug) can throw onto a retry class.

Unknown failures classify as retry on purpose: a client-side exception is counted by the outbox and dead-letters after maxAttempts (docs/10 §4.5, last row), which loses nothing, whereas guessing rejected would mark a perfectly good submission as refused by a server that never saw it.

Parameters

ParameterType
errunknown

Returns

ClassifiedError