Semantics : ThrowStatement

ThrowStatement  ::=  throw
( new ( java :: JavaClassName | CONST_NAME | : IDENTIFIER ) ( Arguments )?
| IDENTIFIER ( , Expr )?
)?

Used by:  

The throw statement can throw a Java exception or a JudoScript runtime error object. When throwing a runtime error, it takes an runtime name and optionally with a message. The runtime errors that can be thrown are ASSERTION_FAILURE and USER_EXCEPTION.