@sheetwrite/coreclass
Path-qualified schema failure found while validating an untrusted snapshot.
- Package
@sheetwrite/core- Source
packages/core/src/document-protocol.ts#L235
Members 3
constructor
constructor(errors: readonly DocumentValidationErrorinterface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}interface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}interface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}Path-qualified validation failure for a document operation.API reference →[]);errors
errors: readonly DocumentValidationErrorinterface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}interface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}interface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}Path-qualified validation failure for a document operation.API reference →[];name
name: "SnapshotValidationError"Declaration
View full TypeScript declaration
class SnapshotValidationError 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(errors: readonly DocumentValidationErrorinterface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}interface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}interface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}Path-qualified validation failure for a document operation.API reference →[]); errors: readonly DocumentValidationErrorinterface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}interface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}interface DocumentValidationError {
path: string;
code:
| "unsupported-schema"
| "invalid-value"
| "duplicate-id"
| "missing-reference"
| "out-of-bounds"
| "overlapping-merge"
| "non-serializable"
| "resource-limit";
message: string;
}Path-qualified validation failure for a document operation.API reference →[]; name: "SnapshotValidationError";}