ilog.rules.engine

Class IlrBadContextException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • ilog.rules.engine.IlrBadContextException
  • All Implemented Interfaces:
    java.io.Serializable


    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.

    See Also:
    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 Summary

      Constructors 
      Constructor and Description
      IlrBadContextException(java.lang.Class expected, java.lang.Class passed)
      Constructs an IlrBadContextException using two classes.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IlrBadContextException

        public IlrBadContextException(java.lang.Class expected,
                              java.lang.Class passed)

        Constructs an IlrBadContextException using two classes.

        Parameters:
        expected - The root class of the expected classes.
        passed - The class actually passed.

© Copyright IBM Corp. 1987, 2017