Represents an error that occurs when an invalid argument is provided. This error is typically thrown when a function or method receives an argument that doesn't meet the expected criteria or constraints.
Constructor
a descriptive error message why the error was raised
Optional
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Represents an error that occurs when an invalid argument is provided. This error is typically thrown when a function or method receives an argument that doesn't meet the expected criteria or constraints.