ThrowStatement ::= |
throw ( new ( java | IDENTIFIER ( )? |
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
.