Skip to content

Class: E_VALUE_UNSERIALIZABLE

Thrown when a value cannot be serialized

Remarks

This error should not be thrown by the library as test the library before releasing it, but it does exist.

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

inspection

Get Signature

ts
get inspection(): string;

The result of the inspect function on the value that caused the error.

Returns

string


kind

Get Signature

ts
get kind(): string;

The result of the typeof operator on the value 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;