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
Stable failure category to branch on, such as "resource-limit".
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.
The Sheetwrite operation that failed, such as "xlsx-import".
retryable?: boolean | undefined;optional
Whether trying the same call again can succeed; absent when Sheetwrite cannot tell.
Methods
constructor(code: SheetwriteErrorCode, operation: SheetwriteErrorOperation, message: string, options?: SheetwriteErrorOptions);Creates an error for operation with the stable code; a message over 8 KiB of UTF-8 is shortened.
The envelope as a plain object, for JSON.stringify or postMessage; name is always "SheetwriteError".
Declaration
View full TypeScript declaration
constructor( message: string, ); name: string; retryable?: boolean | undefined;}Referenced by
Public exports naming SheetwriteError
CommentCoordinatorEvent@sheetwrite/coreDelimitedTextOptionsError@sheetwrite/coreDelimitedTextResourceError@sheetwrite/coreGridEvents@sheetwrite/coreIncompleteDataError@sheetwrite/corePersistenceError@sheetwrite/corePresenceCoordinatorEvent@sheetwrite/coreSnapshotResourceError@sheetwrite/coreSnapshotValidationError@sheetwrite/coreSyncCoordinatorEvent@sheetwrite/coreSyncPendingCapacityError@sheetwrite/coreSyncProtocolError@sheetwrite/core- and 11 more