|
||||||||||
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 jess.JessException
JessException is the parent type of all exceptions thrown by public methods in the Jess library.
(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories
Constructor Summary | |
JessException(java.lang.String routine,
java.lang.String msg,
int data)
Constructs a JessException containing a descriptive message. |
|
JessException(java.lang.String routine,
java.lang.String msg,
java.lang.String data)
Constructs a JessException containing a descriptive message. |
|
JessException(java.lang.String routine,
java.lang.String msg,
java.lang.Throwable t)
Constructs a JessException containing a nested exception. |
Method Summary | |
void |
addContext(java.lang.String s)
Adds information about where an error happened to a JessException. |
java.lang.Throwable |
getCause()
Get any nested exception object. |
java.lang.String |
getContext()
Get the context information for this error. |
java.lang.String |
getData()
Get the extra error data. |
int |
getLineNumber()
Get the program line number where the error occurred. |
java.lang.String |
getMessage()
Get the error message. |
java.lang.Throwable |
getNextException()
Deprecated. Use getCause instead. |
java.lang.String |
getProgramText()
Get the Jess program fragment that led to this exception |
java.lang.String |
getRoutine()
Get the Java routine name where this error occurred |
void |
setData(java.lang.String v)
Set the value of the extra error data. |
void |
setLineNumber(int v)
Set the program line number where the error occurred. |
void |
setMessage(java.lang.String v)
Set the error message. |
void |
setNextException(java.lang.Throwable v)
Set a nested exception object |
void |
setProgramText(java.lang.String v)
Set the Jess program fragment that led to this exception. |
void |
setRoutine(java.lang.String v)
Set the Java routine name where this error occurred |
java.lang.String |
toString()
Returns a String representation of this JessException. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JessException(java.lang.String routine, java.lang.String msg, java.lang.String data)
routine
- the name of the routine this exception occurred in.msg
- an informational message.data
- usually some data; appended to msg after a space.public JessException(java.lang.String routine, java.lang.String msg, int data)
routine
- the name of the routine this exception occurred in.msg
- an informational message.data
- usually some data; appended to msg after a space.public JessException(java.lang.String routine, java.lang.String msg, java.lang.Throwable t)
routine
- the name of the routine this exception occurred in.msg
- an informational message.t
- another type of exception that this object wrapsMethod Detail |
public java.lang.Throwable getNextException()
getCause()
public java.lang.Throwable getCause()
public void setNextException(java.lang.Throwable v)
v
- Value to assign to nextException.public int getLineNumber()
public void setLineNumber(int v)
v
- Value to assign to lineNumber.public java.lang.String getMessage()
public void setMessage(java.lang.String v)
v
- Value to assign to message.public java.lang.String getRoutine()
public void setRoutine(java.lang.String v)
v
- Value to assign to routine.public java.lang.String getData()
public void setData(java.lang.String v)
v
- Value to assign to data.public java.lang.String getProgramText()
public void setProgramText(java.lang.String v)
v
- Value to assign to programText.public void addContext(java.lang.String s)
s
- a description of an execution context: 'defrule Foo', for example.toString()
public java.lang.String getContext()
public java.lang.String toString()
|
© 2001 E.J. Friedman-Hill and Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |