Class: E_VALUE_FROM_FUTURE_VERSION
Thrown when a value which is being deserialized is from a future version of the library.
Remarks
This error is thrown when the version of the library used to serialize the value is greater than the current version. This is used to prevent deserializing values which may not be compatible with the current version of the library.
Extends
SerializationError
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
cause? | public | unknown | - | SerializationError.cause |
stack? | public | string | - | SerializationError.stack |
prepareStackTrace? | static | (err: Error, stackTraces: CallSite[]) => any | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces | SerializationError.prepareStackTrace |
stackTraceLimit | static | number | - | SerializationError.stackTraceLimit |
Accessors
current
Get Signature
ts
get current(): string;The current version of the library.
Returns
string
version
Get Signature
ts
get version(): string;The version that caused the error.
Returns
string
Methods
captureStackTrace()
ts
static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Create .stack property on a target object
Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
ts
SerializationError.captureStackTrace;