Constructs an instance of Error which will JSON.stringify correctly.
A JSON object, the properties of which will become the properties of the constructed Error. It is recommended to include a property "message".
Assigns the properties of a JSON object to an existing Error, and ensures that the "message" property is enumerable.
An Error
A JSON object, the properties of which will become properties of the Error.
the passed-in Error
Generated using TypeDoc
JsonObjectError is constructed with a JSON object, and will JSON.stringify correctly, but it extends Error so will also carry a stack trace.