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