Skip to main content

Class: SnapshotProcessingError

Thrown when a structural issue is encountered while processing a snapshot (extends MobxKeystoneError).

Use instanceof SnapshotProcessingError to distinguish snapshot processing errors from other MobxKeystoneError instances.

Extends​

Constructors​

Constructor​

new SnapshotProcessingError(data): SnapshotProcessingError;

Parameters​

ParameterType
dataSnapshotProcessingErrorData

Returns​

SnapshotProcessingError

Overrides​

MobxKeystoneError.constructor

Properties​

actualSnapshot?​

readonly optional actualSnapshot?: any;

cause?​

optional cause?: unknown;

Inherited from​

MobxKeystoneError.cause


message​

message: string;

Inherited from​

MobxKeystoneError.message


modelTrail?​

readonly optional modelTrail?: readonly string[];

name​

name: string;

Inherited from​

MobxKeystoneError.name


path​

readonly path: Path;

stack?​

optional stack?: string;

Inherited from​

MobxKeystoneError.stack

Methods​

isError()​

static isError(error): error is Error;

Indicates whether the argument provided is a built-in Error instance or not.

Parameters​

ParameterType
errorunknown

Returns​

error is Error

Inherited from​

MobxKeystoneError.isError