|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.flagstone.translate.ParseException
public class ParseException
This exception is thrown when parse errors are encountered. ParseExceptions contain information about the sequence of tokens that generated the error however the information is sometimes cryptic. The ASParser generates detailed information in a more user friendly format, reporting the name of the file if the script was #include'd, the line and number in the script along with an error key which can be used to generate a localised error message.
Field Summary | |
---|---|
Token |
currentToken
This is the last token that has been consumed successfully. |
protected java.lang.String |
eol
|
int[][] |
expectedTokenSequences
Each entry in this array is an array of integers. |
protected boolean |
specialConstructor
|
java.lang.String[] |
tokenImage
This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. |
Constructor Summary | |
---|---|
ParseException()
Generates an ParseException. |
|
ParseException(java.lang.String message)
Generates an ParseException with the specified message. |
|
ParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
java.lang.String[] tokenImageVal)
|
Method Summary | |
---|---|
protected java.lang.String |
add_escapes(java.lang.String str)
|
java.lang.String |
getMessage()
This method has the standard behaviour when this object has been created using the standard constructors. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean specialConstructor
public Token currentToken
public int[][] expectedTokenSequences
public java.lang.String[] tokenImage
protected java.lang.String eol
Constructor Detail |
---|
public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, java.lang.String[] tokenImageVal)
public ParseException()
public ParseException(java.lang.String message)
Method Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
protected java.lang.String add_escapes(java.lang.String str)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |