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
| Parameter | Type |
|---|---|
data | SnapshotProcessingErrorData |
Returns
SnapshotProcessingError
Overrides
Properties
actualSnapshot?
readonly optional actualSnapshot?: any;
cause?
optional cause?: unknown;
Inherited from
message
message: string;
Inherited from
modelTrail?
readonly optional modelTrail?: readonly string[];
name
name: string;
Inherited from
path
readonly path: Path;
stack?
optional stack?: string;
Inherited from
Methods
isError()
static isError(error): error is Error;
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
error is Error