Class: SnapshotTypeMismatchError
Thrown when a snapshot value does not match any of the expected types in a union (extends MobxKeystoneError).
Use instanceof SnapshotTypeMismatchError to distinguish snapshot type-mismatch errors
from other MobxKeystoneError instances.
Extends
Constructors
Constructor
new SnapshotTypeMismatchError(data): SnapshotTypeMismatchError;
Parameters
| Parameter | Type |
|---|---|
data | SnapshotTypeMismatchErrorData |
Returns
SnapshotTypeMismatchError
Overrides
Properties
actualValue
readonly actualValue: any;
cause?
optional cause?: unknown;
Inherited from
expectedTypeName
readonly expectedTypeName: string;
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