ilog.rules.engine

Class IlrRuntimeException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • ilog.rules.engine.IlrRuntimeException
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    IlrSystemRuntimeException, IlrUserRuntimeException


    public abstract class IlrRuntimeException
    extends java.lang.RuntimeException

    This exception is the base class of all the runtime exceptions thrown by the rule engine during the execution of rules. As this class is abstract, the thrown exceptions will be instances of derived classes.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected IlrRuntimeException(java.lang.Throwable target)
      Constructs an exception using a target exception object thrown by the JVM.
      protected IlrRuntimeException(java.lang.Throwable target, java.lang.reflect.Member member)
      Constructs an IlrRuntimeException with a target exception thrown by the JVM and a Java reflection member (method or field) which has caused the exception.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getMessage() 
      java.lang.Throwable getTargetException()
      Returns the target exception reported by the Java virtual machine.
      java.lang.reflect.Member getTargetMember()
      Returns the target member (a field, a method or a constructor of some class in the application) which caused the exception.
      void printHeader(java.io.PrintWriter s)
      Prints the header of the rule stack trace.
      void printRuleStackTrace()
      Prints the rule stack trace to System.err.
      void printRuleStackTrace(java.io.PrintStream s)
      Prints the rule stack trace to a PrintStream.
      void printRuleStackTrace(java.io.PrintWriter s)
      Prints the rule stack trace to a PrintWriter.
      void printStackTrace()
      Prints a stack trace using the target member and the target exception.
      void printStackTrace(java.io.PrintStream s)
      Prints a stack trace using the target member and the target exception.
      void printStackTrace(java.io.PrintWriter s)
      Prints a stack trace using the target member and the target exception.
      • Methods inherited from class java.lang.Throwable

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

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

      • IlrRuntimeException

        protected IlrRuntimeException(java.lang.Throwable target,
                           java.lang.reflect.Member member)

        Constructs an IlrRuntimeException with a target exception thrown by the JVM and a Java reflection member (method or field) which has caused the exception.

        Parameters:
        target - The target exception.
        member - The target reflection member.
      • IlrRuntimeException

        protected IlrRuntimeException(java.lang.Throwable target)

        Constructs an exception using a target exception object thrown by the JVM.

        Parameters:
        target - The target exception.
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getTargetMember

        public java.lang.reflect.Member getTargetMember()

        Returns the target member (a field, a method or a constructor of some class in the application) which caused the exception.

        Returns:
        a member (field, method or constructor), or null if the exception is not related to a specific class member.
      • getTargetException

        public java.lang.Throwable getTargetException()

        Returns the target exception reported by the Java virtual machine.

        Returns:
        a throwable object. This exception is never null.
      • printRuleStackTrace

        public void printRuleStackTrace()

        Prints the rule stack trace to System.err. A rule stack trace does not include the stack trace of the original Java exception.

      • printRuleStackTrace

        public void printRuleStackTrace(java.io.PrintWriter s)

        Prints the rule stack trace to a PrintWriter. A rule stack trace does not include the stack trace of the original Java exception.

        Parameters:
        s - The PrintWriter to write the rule stack trace.
      • printHeader

        public void printHeader(java.io.PrintWriter s)
        Prints the header of the rule stack trace. The header is composed of the exception class name.
        Parameters:
        s - The PrintWriter to write the rule stack trace.
      • printRuleStackTrace

        public void printRuleStackTrace(java.io.PrintStream s)

        Prints the rule stack trace to a PrintStream. A rule stack trace does not include the stack trace of the original Java exception.

      • printStackTrace

        public void printStackTrace()

        Prints a stack trace using the target member and the target exception. A stack trace is composed of a rule stack trace and the original Java exception's stack trace.

        Overrides:
        printStackTrace in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace(java.io.PrintWriter s)

        Prints a stack trace using the target member and the target exception. A stack trace is composed of a rule stack trace and the original Java exception's stack trace.

        Overrides:
        printStackTrace in class java.lang.Throwable
        Parameters:
        s - A print writer to which the stack trace will be printed.
      • printStackTrace

        public void printStackTrace(java.io.PrintStream s)

        Prints a stack trace using the target member and the target exception. A stack trace is composed of a rule stack trace and the original Java exception's stack trace.

        Overrides:
        printStackTrace in class java.lang.Throwable
        Parameters:
        s - A print stream to which the stack trace will be printed.

© Copyright IBM Corp. 1987, 2017