Wrap an error as an XtError instance.
Features:
Returns a new instance.
The error or error message.
Optional
Parsed stack trace.
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Protected
Renders the error-message, stack-trace and any other own-properties as a colorful formatted string that is easy to read when printed to in the terminal.
Returns the same as toString.
XtError.prototype.toString
Create .stack property on a target object
Generated using TypeDoc
Wrap an error as an XtError instance.
Features: