Class: TypeCheckErrorFailure
A thrown type-check failure (extends MobxKeystoneError).
Thrown by TypeCheckError.throw when a runtime type check fails.
Use instanceof TypeCheckErrorFailure to distinguish type-check errors
from other MobxKeystoneError instances.
Extends
Constructors
Constructor
new TypeCheckErrorFailure(data): TypeCheckErrorFailure;
Parameters
| Parameter | Type |
|---|---|
data | TypeCheckErrorData |
Returns
TypeCheckErrorFailure
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
typeCheckedValue?
readonly optional typeCheckedValue?: any;
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