|
|||||||||||
| 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
|
+--com.ugos.JIProlog.engine.JIPRuntimeException
JIPRuntimeException is the base class af all exceptions raised by JIProlog.
All runtime errors and exceptions are translated in JIPRuntimeException except JIPSyntaxErrorException.
JIPEngine,
Serialized Form| Field Summary | |
static int |
ID_UNKNOWN_EXCEPTION
|
static int |
ID_USER_EXCEPTION
|
| Constructor Summary | |
JIPRuntimeException(int nErrorNum,
java.lang.String strMsg)
Constructs a new JIPRuntimeException |
|
JIPRuntimeException(java.lang.String strMsg)
Constructs a new JIPRuntimeException with unknown error number |
|
| Method Summary | |
int |
getErrorNumber()
Gets the error number |
java.lang.String |
getFileName()
Gets the file name where the exception was raised |
int |
getLineNumber()
Gets the line number where the exception was raised |
java.lang.String |
getMessage()
Gets the error message |
int |
getPosition()
Gets the position where the exception was raised |
JIPTerm |
getTerm()
Gets the eerror term associated to this exception |
void |
printPrologStackTrace()
Write the stack trace of goals to the default print stream |
void |
printPrologStackTrace(java.io.PrintStream ps)
Write the stack trace of goals to the given print stream |
void |
printPrologStackTrace(java.io.PrintWriter pw)
Write the stack trace of goals to the given print writer |
void |
setTerm(com.ugos.JIProlog.engine.PrologObject term)
Sets the error term associated to this exception |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ID_UNKNOWN_EXCEPTION
public static final int ID_USER_EXCEPTION
| Constructor Detail |
public JIPRuntimeException(int nErrorNum,
java.lang.String strMsg)
nErrorNum - number of the errorstrMsg - message associated to this exceptionpublic JIPRuntimeException(java.lang.String strMsg)
strMsg - message associated to this exception| Method Detail |
public final int getErrorNumber()
public JIPTerm getTerm()
public void setTerm(com.ugos.JIProlog.engine.PrologObject term)
term - the term of this exceptionpublic java.lang.String getFileName()
public int getLineNumber()
public int getPosition()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void printPrologStackTrace()
public void printPrologStackTrace(java.io.PrintStream ps)
ps - print stream that receive the stack tracepublic void printPrologStackTrace(java.io.PrintWriter pw)
pw - printwriter that receive the stack trace
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||