Skip to content
Sheetwrite

@sheetwrite/core/codec

XlsxResourceErrorclass

Report a problem

On this page

Stable resource-limit failure surfaced before an XLSX codec allocates unsafe data.

Members

Properties

actual: number;

The size found in the file, in the same unit; above limit.

code: "xlsx-resource-limit";

Always "xlsx-resource-limit".

limit: number;

The limit in force, in that resource's unit (cells, bytes, entries).

name: "XlsxResourceError";

Always "XlsxResourceError".

Methods

constructor(resource: keyof XlsxResourceLimits, limit: number, actual: number, operation: "import" | "export");

Creates the error for an import or export that found actual above limit for resource.

Declaration

View full TypeScript declaration
class XlsxResourceError extends SheetwriteError {
constructor(
resource: keyof XlsxResourceLimits,
limit: number,
actual: number,
operation: "import" | "export",
);
actual: number;
code: "xlsx-resource-limit";
limit: number;
name: "XlsxResourceError";
resource: keyof XlsxResourceLimits;
}