Exception throwing enables BPM Events to generate exceptions, similar to—and in the same format as—Java exceptions. The syntax is similar to Java, and is used inside blocks (either the action part of a rule, or initialize{} and finalize{} sections). An example of exception throwing follows:
throw_statement() ::= "throw" <exp> ";"
<exp> may be java object(which implements Throwable)