Skip to content
Sheetwrite

@sheetwrite/queries

QueryErrorclass

Report a problem

On this page

Fatal source or plan failure; cell-level errors stay in the returned column lanes.

Members

Properties

code: "invalid-argument" | "resource-limit";

resource-limit when a QueryLimits ceiling was hit, otherwise invalid-argument.

diagnostic: QueryDiagnostic;

What failed and where: the step, column and row, never source values.

name: "QueryError"

Tells query failures apart from other SheetwriteErrors in logs and error.name checks.

Methods

constructor(diagnostic: QueryDiagnostic);

Maps the limit diagnostic to resource-limit and every other diagnostic to invalid-argument. The message names only the stable diagnostic code.

Declaration

View full TypeScript declaration
class QueryError extends SheetwriteError {
constructor(diagnostic: QueryDiagnostic);
code: "invalid-argument" | "resource-limit";
diagnostic: QueryDiagnostic;
name: "QueryError";
}