Optional
causeReadonly
messageDetails of the exception.
Optional
Readonly
metadataOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackTurns the exception into a Serialized object.
Static
capture
Exception was created out of a need for a common base class for all Node.js Error objects. This class will allow you to extend and/or augment any Error by simply defining your own properties on the extended class.
NOTE: Do not to include compromising data in the
metadata
constructor parameter in production environments.