public final class IlrBadContextException
extends java.lang.RuntimeException
This exception is thrown when there is a mismatch between execution context classes.
The class IlrRuleset represents a ruleset
and the class IlrContext represents the context where
a ruleset is executed. Since rules can refer to and use the fields and methods
of the derived context class, the rules defined for a given context
cannot be used by another context. This
exception is thrown if the context is not the correct type.
Below is the list of methods that perform context type checking. These
methods may throw an exception of class
IlrBadContextException. See these methods for more details.
ilog.rules.engine.IlrRuleset(java.lang.Class),
ilog.rules.engine.IlrRuleset.addRule(ilog.rules.engine.IlrRule),
IlrRuleset.removeRule(ilog.rules.engine.IlrRule),
ilog.rules.engine.IlrRuleset.replaceRule(ilog.rules.engine.IlrRule),
ilog.rules.engine.IlrRuleset.mergeRules(ilog.rules.engine.IlrRuleset),
Serialized Form| Constructor and Description |
|---|
IlrBadContextException(java.lang.Class expected,
java.lang.Class passed)
Constructs an
IlrBadContextException using two classes. |
© Copyright IBM Corp. 1987, 2017