Rule Execution Server API

ilog.rules.factory
Class IlrTryCatchFinallyStatement.CatchBlock

java.lang.Object
  extended by ilog.rules.factory.IlrBaseStatement
      extended by ilog.rules.factory.IlrStatementBlock
          extended by ilog.rules.factory.IlrTryCatchFinallyStatement.CatchBlock
All Implemented Interfaces:
ilog.rules.factory.IlrSourceElement, IlrStatement, Serializable
Enclosing class:
IlrTryCatchFinallyStatement

public static final class IlrTryCatchFinallyStatement.CatchBlock
extends IlrStatementBlock

This class represents the catch part of a try - catch - finally statement.

Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short-term storage or RMI between applications running the same version of IBM Decision Server.

See Also:
Serialized Form

Constructor Summary
IlrTryCatchFinallyStatement.CatchBlock(IlrVariable variable, IlrStatement[] statements)
          Constructs a catch block containing initially the statements given in the array statements.
 
Method Summary
 IlrVariable getVariable()
          Returns the variable that represents the exception caught by this catch clause.
 
Methods inherited from class ilog.rules.factory.IlrStatementBlock
addStatement, enumerateStatements, getStatementCount, getStatements, removeStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.rules.factory.IlrStatement
exploreStatement
 

Constructor Detail

IlrTryCatchFinallyStatement.CatchBlock

public IlrTryCatchFinallyStatement.CatchBlock(IlrVariable variable,
                                              IlrStatement[] statements)
Constructs a catch block containing initially the statements given in the array statements.

Parameters:
variable - The variable that represents the exception object caught by this catch clause.
statements - The statements to execute when the test is false. This parameter can be null; in this case, it represents an empty block.
Method Detail

getVariable

public IlrVariable getVariable()
Returns the variable that represents the exception caught by this catch clause.

Returns:
The variable that models the caught exception.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2012