Skip to content

SerializedError

SerializedError = object

Defined in: types.ts:36

Serialized representation of an Error, safe to JSON-encode and ship to a transport. Captures the common fields plus the cause chain (recursive, depth-capped) and Node-style code for I/O errors.

optional cause?: SerializedError

Defined in: types.ts:43

Recursive cause chain (from new Error(..., { cause })). Depth-capped at 3.


optional code?: string | number

Defined in: types.ts:41

Node-style error code, e.g. "ENOENT" or numeric errno.


message: string

Defined in: types.ts:38


name: string

Defined in: types.ts:37


optional stack?: string

Defined in: types.ts:39