Skip to content
Sheetwrite

@sheetwrite/core/codec

SheetwriteErrorclass

Report a problem

On this page

The error Sheetwrite throws or passes to callbacks.

Note: the message is cut to 8 KiB of UTF-8, and so are the context strings together, because both can quote host or file data.

Members

Properties

context?: Readonly<Record<string, SheetwriteErrorContextValue>> | undefined;

optional

JSON-safe details about the failure, copied and frozen when the error is made.

name: string;

Error class name; subclasses such as PersistenceError set their own.

retryable?: boolean | undefined;

optional

Whether trying the same call again can succeed; absent when Sheetwrite cannot tell.

Methods

The envelope as a plain object, for JSON.stringify or postMessage; name is always "SheetwriteError".

Declaration

View full TypeScript declaration
class SheetwriteError extends Error implements SheetwriteErrorEnvelope {
constructor(
message: string,
);
context?: Readonly<Record<string, SheetwriteErrorContextValue>> | undefined;
name: string;
retryable?: boolean | undefined;
toJSON: () => SheetwriteErrorEnvelope;
}

Referenced by

Public exports naming SheetwriteError