Create the error with a message and code.
the error message
Optional
code: numberOptional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static
stackStatic
captureGenerated using TypeDoc
Haveno error with message and code.