JsonCyclicError class

Reports that an object could not be stringified due to cyclic references.

Reports that an object could not be stringified due to cyclic references.

An object that references itself cannot be serialized by stringify. When the cycle is detected, a JsonCyclicError is thrown.

Extends

Constructors

JsonCyclicError(Object object)
The first object that was detected as part of a cycle.

Instance Properties

stackTrace StackTrace Inherited
read-only
unsupportedObject dynamic Inherited
read-only
The object that could not be serialized.
cause dynamic Inherited
read-only
The exception thrown when trying to convert the object.

Instance Methods

toString() → String
Returns a string representation of this object.