throw

The tHRow statement has the following syntax:
throw expression;
expression may evaluate to a value of any type. Commonly, however, it is an Error object or an instance
of one of the subclasses of Error. It can also be useful to throw a string that contains an error message,
or a numeric value that represents some sort of error code.

你可能感兴趣的:(throw)