Structural form preserved across realms and JSON serialization.
- Package
@sheetwrite/core
- Source
packages/core/src/errors.ts#L97
Members 6
name
message
readonly message: string;
code
readonly code: SheetwriteErrorCodetype SheetwriteErrorCode = (typeof SHEETWRITE_ERROR_CODES)[number];type SheetwriteErrorCode = (typeof SHEETWRITE_ERROR_CODES)[number];type SheetwriteErrorCode =
(typeof SHEETWRITE_ERROR_CODES)[number];Exhaustive stable discriminator for consumer-visible Sheetwrite failures.API reference →;
operation
readonly operation: SheetwriteErrorOperationtype SheetwriteErrorOperation =
(typeof SHEETWRITE_ERROR_OPERATIONS)[number];type SheetwriteErrorOperation =
(typeof SHEETWRITE_ERROR_OPERATIONS)[number];type SheetwriteErrorOperation =
(typeof SHEETWRITE_ERROR_OPERATIONS)[number];Exhaustive stable operation discriminator for consumer-visible failures.API reference →;
context
readonly context?: SheetwriteErrorContexttype SheetwriteErrorContext = Readonly<
Record<string, SheetwriteErrorContextValue>
>;type SheetwriteErrorContext = Readonly<
Record<string, SheetwriteErrorContextValue>
>;type SheetwriteErrorContext =
Readonly<
Record<
string,
SheetwriteErrorContextValue
>
>;Stable, serialization-safe diagnostic context.API reference →;
retryable
readonly retryable?: boolean;
Declaration
View full TypeScript declaration
export interface SheetwriteErrorEnvelope {
readonly message: string;
readonly code: SheetwriteErrorCodetype SheetwriteErrorCode = (typeof SHEETWRITE_ERROR_CODES)[number];type SheetwriteErrorCode = (typeof SHEETWRITE_ERROR_CODES)[number];type SheetwriteErrorCode =
(typeof SHEETWRITE_ERROR_CODES)[number];Exhaustive stable discriminator for consumer-visible Sheetwrite failures.API reference →; readonly operation: SheetwriteErrorOperationtype SheetwriteErrorOperation =
(typeof SHEETWRITE_ERROR_OPERATIONS)[number];type SheetwriteErrorOperation =
(typeof SHEETWRITE_ERROR_OPERATIONS)[number];type SheetwriteErrorOperation =
(typeof SHEETWRITE_ERROR_OPERATIONS)[number];Exhaustive stable operation discriminator for consumer-visible failures.API reference →; readonly context?: SheetwriteErrorContexttype SheetwriteErrorContext = Readonly<
Record<string, SheetwriteErrorContextValue>
>;type SheetwriteErrorContext = Readonly<
Record<string, SheetwriteErrorContextValue>
>;type SheetwriteErrorContext =
Readonly<
Record<
string,
SheetwriteErrorContextValue
>
>;Stable, serialization-safe diagnostic context.API reference →; readonly retryable?: boolean;