-
new CustomError( message )
A global custom error.
-
Description
As this is just a test file there is no implementation of inheriting the Error.prototype or fixing of the stack trace, this is a dummy dummy object to test the documentation.
Parameters
Name Type Description message
string The message for the error.
Examples
Use this class like any standard error object.
throw new CustomError("Oh no! It broke :(");
Details