Reference > Rule Languages > ILOG Rule Language > IRL Keywords > finally

Summary

The keyword within a try statement that specifies a control block to be executed after all processing of a try block, including the processing for any exceptions. This keyword is used in rule actions or functions.

Syntax

try {statements} 
catch (exceptionType1 identifier) {statements} 
[catch (exceptionType2 identifier) {statements} 
...]
finally {statements}

Description

The try-catch-finally statements establish a block of code for exception handling. The blocks all begin and end with curly braces.

The finally statement is guaranteed to be executed if any portion of the try statement is executed, regardless of how the code in the try and catch statements completes.

See Also

try