Sets a custom name for Error via the constructor property. Extend this if you want custom names in errors.
Error
constructor
The error message
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Sets a custom name for
Error
via theconstructor
property. Extend this if you want custom names in errors.