|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException ilog.rules.engine.IlrRuntimeException
public abstract class IlrRuntimeException
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.
Constructor Summary | |
---|---|
protected |
IlrRuntimeException(Throwable target)
Constructs an exception using a target exception object thrown by the JVM. |
protected |
IlrRuntimeException(Throwable target,
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 | |
---|---|
String |
getMessage()
|
Throwable |
getTargetException()
Returns the target exception reported by the Java virtual machine. |
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(PrintWriter s)
Prints the header of the rule stack trace. |
void |
printRuleStackTrace()
Prints the rule stack trace to System.err . |
void |
printRuleStackTrace(PrintStream s)
Prints the rule stack trace to a PrintStream . |
void |
printRuleStackTrace(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(PrintStream s)
Prints a stack trace using the target member and the target exception. |
void |
printStackTrace(PrintWriter s)
Prints a stack trace using the target member and the target exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected IlrRuntimeException(Throwable target, 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.
target
- The target exception.member
- The target reflection member.protected IlrRuntimeException(Throwable target)
Constructs an exception using a target exception object thrown by the JVM.
target
- The target exception.Method Detail |
---|
public String getMessage()
getMessage
in class Throwable
public Member getTargetMember()
Returns the target member (a field, a method or a constructor of some class in the application) which caused the exception.
null
if the exception is not related to a specific class member.public Throwable getTargetException()
Returns the target exception reported by the Java virtual machine.
null
.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.
public void printRuleStackTrace(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.
s
- The PrintWriter
to write the rule stack trace.public void printHeader(PrintWriter s)
s
- The PrintWriter
to write the rule stack trace.public void printRuleStackTrace(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.
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.
printStackTrace
in class Throwable
public void printStackTrace(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.
printStackTrace
in class Throwable
s
- A print writer to which the stack trace will be printed.public void printStackTrace(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.
printStackTrace
in class Throwable
s
- A print stream to which the stack trace will be printed.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |