Class DocumentTooLargeError

Thrown when a document would take more memory to read than its loader allows.

Hierarchy

  • Error
    • DocumentTooLargeError

Constructors

Properties

Constructors

  • Parameters

    • limit: number

      The loader's bound, in bytes, on what the document's parts inflate to: the bound a Word file passed, and the office loader's maxInflatedBytes whichever of its bounds the document reached.

    • message: string = ...

      What the document reached, when that is another bound: the office loader names the bound officeparser reported. Left out, the message says the document inflates past limit bytes.

    Returns DocumentTooLargeError

Properties

code: "DOCUMENT_TOO_LARGE" = 'DOCUMENT_TOO_LARGE'

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

limit: number

The loader's bound, in bytes, on what the document's parts inflate to: the bound a Word file passed, and the office loader's maxInflatedBytes whichever of its bounds the document reached.