public class JIPRuntimeException extends RuntimeException
JIPEngine
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
ID_UNKNOWN_EXCEPTION |
static int |
ID_USER_EXCEPTION |
Constructor and Description |
---|
JIPRuntimeException(int nErrorNum,
String strMsg)
Constructs a new JIPRuntimeException
|
JIPRuntimeException(String strMsg)
Constructs a new JIPRuntimeException with unknown error number
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorNumber()
Gets the error number
|
String |
getFileName()
Gets the file name where the exception was raised
|
String |
getInnerMessage()
Gets the inner message
|
int |
getLineNumber()
Gets the line number where the exception was raised
|
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(PrintStream ps)
Write the stack trace of goals to the given print stream
|
void |
printPrologStackTrace(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
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int ID_UNKNOWN_EXCEPTION
public static final int ID_USER_EXCEPTION
public JIPRuntimeException(int nErrorNum, String strMsg)
nErrorNum
- number of the errorstrMsg
- message associated to this exceptionpublic JIPRuntimeException(String strMsg)
strMsg
- message associated to this exceptionpublic final int getErrorNumber()
public JIPTerm getTerm()
public void setTerm(com.ugos.jiprolog.engine.PrologObject term)
term
- the term of this exceptionpublic String getFileName()
public int getLineNumber()
public int getPosition()
public String getMessage()
getMessage
in class Throwable
public String getInnerMessage()
public void printPrologStackTrace()
public void printPrologStackTrace(PrintStream ps)
ps
- print stream that receive the stack tracepublic void printPrologStackTrace(PrintWriter pw)
pw
- printwriter that receive the stack trace