|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
jess.JessException
jess.ParseException
public class ParseException
An error during parsing. These are used extensively in the JessDE editor.
(C) 2013 Sandia Corporation
Field Summary | |
---|---|
static int |
ADVICE
First advice |
static int |
ADVICE_COULD_BE_FUNCTION
This could be a nil list, but it also could be a function call. |
static int |
INVALID_DECLARAND
A semantic error has been detected in the input. |
static int |
SEMANTIC_ERROR
A semantic error has been detected in the input. |
static int |
SYNTAX_ERROR
A syntax error has been detected in the input. |
static int |
WARNING_IMPLIED_DEFTEMPLATE
An implied ordered deftemplate has been created. |
static int |
WARNING_NO_SUCH_SLOT
An invalid slot name was seen in a pattern. |
static int |
WARNING_REDEFINITION
A rule or query is being redefined, perhaps inadvertently |
static int |
WARNING_UNDEFINED_DEFGLOBAL
An undefined defglobal was referenced. |
static int |
WARNING_UNDEFINED_DEFQUERY
An undefined defquery is invoked. |
static int |
WARNING_UNDEFINED_FUNCTION
An unknown funtion name was seen. |
Fields inherited from class jess.JessException |
---|
CLASS_NOT_FOUND, GENERAL_ERROR, NO_ERROR |
Method Summary | |
---|---|
java.lang.String[] |
getAlternatives()
Returns an array of valid tokens that would have been accepted in place of the error token. |
Named |
getConstruct()
If the parser is parsing a construct when the error occurred, then the partially-built construct will be returned; otherwise, this method returns null. |
JessToken |
getErrorToken()
Returns the token at which the error was detected |
java.lang.String |
getFilename()
Returns the name of the file in which the error was detected, if known; otherwise returns null. |
boolean |
isAdvice()
|
Methods inherited from class jess.JessException |
---|
getCause, getContext, getData, getDetail, getErrorCode, getExecutionContext, getLineNumber, getProgramText, getRoutine, setErrorCode, setFilename, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SYNTAX_ERROR
public static final int SEMANTIC_ERROR
public static final int INVALID_DECLARAND
public static final int WARNING_IMPLIED_DEFTEMPLATE
public static final int WARNING_UNDEFINED_FUNCTION
public static final int WARNING_UNDEFINED_DEFGLOBAL
public static final int WARNING_UNDEFINED_DEFQUERY
public static final int WARNING_NO_SUCH_SLOT
public static final int WARNING_REDEFINITION
public static final int ADVICE
public static final int ADVICE_COULD_BE_FUNCTION
Method Detail |
---|
public JessToken getErrorToken()
public java.lang.String[] getAlternatives()
getErrorToken()
public Named getConstruct()
public boolean isAdvice()
public java.lang.String getFilename()
getFilename
in class JessException
|
© 2013 Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |