Try OpenEdge Now
skip to main content
BPM Events User's Guide
Accessing Java objects and EJB components : Rule language extensions : Exception throwing
 

Exception throwing

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)