|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.percederberg.grammatica.parser.ParserLogException
A parser log exception. This class contains a list of all the parse errors encountered while parsing.
Constructor Summary | |
ParserLogException()
Creates a new empty parser log exception. |
Method Summary | |
void |
addError(ParseException e)
Adds a parse error to the log. |
ParseException |
getError(int index)
Returns a specific error from the log. |
int |
getErrorCount()
Returns the number of errors in this log. |
java.lang.String |
getMessage()
Returns the detailed error message. |
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 |
Constructor Detail |
public ParserLogException()
Method Detail |
public int getErrorCount()
public ParseException getError(int index)
index
- the error index, 0 <= index < count
public void addError(ParseException e)
e
- the parse error to addpublic java.lang.String getMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |