Skip to content

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 ​

PropertyModifierTypeDescriptionInherited from
cause?publicunknown-SerializationError.cause
stack?publicstring-SerializationError.stack
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesSerializationError.prepareStackTrace
stackTraceLimitstaticnumber-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 ​

ParameterType
targetObjectobject
constructorOpt?Function

Returns ​

void

Inherited from ​

ts
SerializationError.captureStackTrace;