Whether to use Error.captureStackTrace
if running V8
to clean up the error stack trace when a new error is created.
Default: false
.
Whether to normalize the error.
A boolean
or an object with normalization options -see NormalizeOptions
.
Default: true
.
Generated using TypeDoc
Error type objects will be ensured against; if an object is not an instance of
Error
,ensure
will call the function passed as acreate
argument or, otherwise, instantiate anException
.