@sheetwrite/coreclass
Typed rejection of malformed or resource-exhausting synchronization input.
- Package
@sheetwrite/core- Source
packages/core/src/sync.ts#L179
Members 2
constructor
constructor(code: SyncProtocolErrorCodetype SyncProtocolErrorCode =
| "invalid-limits"
| "invalid-version"
| "invalid-id"
| "invalid-operations"
| "operation-limit"
| "payload-limit"
| "response-id-mismatch"
| "future-distance-limit"
| "buffer-count-limit"
| "buffer-operation-limit"
| "buffer-byte-limit"
| "pending-count-limit"
| "pending-operation-limit"
| "pending-byte-limit"
// … 2 more lines — see the API reference
}type SyncProtocolErrorCode =
| "invalid-limits"
| "invalid-version"
| "invalid-id"
| "invalid-operations"
| "operation-limit"
| "payload-limit"
| "response-id-mismatch"
| "future-distance-limit"
| "buffer-count-limit"
| "buffer-operation-limit"
| "buffer-byte-limit"
| "pending-count-limit"
| "pending-operation-limit"
| "pending-byte-limit"
// … 2 more lines — see the API reference
}type SyncProtocolErrorCode =
| "invalid-limits"
| "invalid-version"
| "invalid-id"
| "invalid-operations"
| "operation-limit"
| "payload-limit"
| "response-id-mismatch"
| "future-distance-limit"
| "buffer-count-limit"
| "buffer-operation-limit"
| "buffer-byte-limit"
| "pending-count-limit"
| "pending-operation-limit"
| "pending-byte-limit"
| "late-echo"
| "remote-operations-rejected";Stable category identifying which synchronization protocol bound was violated.API reference →, message: string);name
name: "SyncProtocolError"Declaration
View full TypeScript declaration
class SyncProtocolError extends SheetwriteErrorclass SheetwriteError
extends Error
implements SheetwriteErrorEnvelope
{
constructor(
code: SheetwriteErrorCode,
operation: SheetwriteErrorOperation,
message: string,
options?: SheetwriteErrorOptions,
);
code:
| "aborted"
| "blocked"
| "initialization-failed"
| "initialization-required"
// … 73 more lines — see the API reference
}class SheetwriteError
extends Error
implements SheetwriteErrorEnvelope
{
constructor(
code: SheetwriteErrorCode,
operation: SheetwriteErrorOperation,
message: string,
options?: SheetwriteErrorOptions,
);
code:
| "aborted"
| "blocked"
| "initialization-failed"
| "initialization-required"
// … 73 more lines — see the API reference
}class SheetwriteError
extends Error
implements
SheetwriteErrorEnvelope
{
constructor(
code: SheetwriteErrorCode,
operation: SheetwriteErrorOperation,
message: string,
options?: SheetwriteErrorOptions,
);
code:
| "aborted"
| "blocked"
| "initialization-failed"
| "initialization-required"
| "datasource-request-failed"
| "renderer-fallback"
| "export-failed"
// … 75 more lines — see the API reference
}Canonical envelope for thrown and callback-delivered Sheetwrite failures.API reference → { constructor(code: SyncProtocolErrorCodetype SyncProtocolErrorCode =
| "invalid-limits"
| "invalid-version"
| "invalid-id"
| "invalid-operations"
| "operation-limit"
| "payload-limit"
| "response-id-mismatch"
| "future-distance-limit"
| "buffer-count-limit"
| "buffer-operation-limit"
| "buffer-byte-limit"
| "pending-count-limit"
| "pending-operation-limit"
| "pending-byte-limit"
// … 2 more lines — see the API reference
}type SyncProtocolErrorCode =
| "invalid-limits"
| "invalid-version"
| "invalid-id"
| "invalid-operations"
| "operation-limit"
| "payload-limit"
| "response-id-mismatch"
| "future-distance-limit"
| "buffer-count-limit"
| "buffer-operation-limit"
| "buffer-byte-limit"
| "pending-count-limit"
| "pending-operation-limit"
| "pending-byte-limit"
// … 2 more lines — see the API reference
}type SyncProtocolErrorCode =
| "invalid-limits"
| "invalid-version"
| "invalid-id"
| "invalid-operations"
| "operation-limit"
| "payload-limit"
| "response-id-mismatch"
| "future-distance-limit"
| "buffer-count-limit"
| "buffer-operation-limit"
| "buffer-byte-limit"
| "pending-count-limit"
| "pending-operation-limit"
| "pending-byte-limit"
| "late-echo"
| "remote-operations-rejected";Stable category identifying which synchronization protocol bound was violated.API reference →, message: string); name: "SyncProtocolError";}