Class DocumentTooComplexError

Thrown when a document's read ends on the worker's heap cap or on its memory outside the heap.

Hierarchy

  • Error
    • DocumentTooComplexError

Constructors

Properties

Constructors

Properties

code: "DOCUMENT_TOO_COMPLEX" = 'DOCUMENT_TOO_COMPLEX'

A stable code for callers that branch on the kind of failure.

limitMb: number

The bound, in MiB, the read passed.

resource: "external" | "heap" = 'heap'

'heap' for the worker's heap cap, 'external' for its memory outside the heap.