|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
gov.llnl.babel.parsers.sidl.SIDLException
gov.llnl.babel.parsers.sidl.GrammarException
public class GrammarException
A GrammarException
is thrown if an error is detected during
the parse of the sidl grammar. This exception inherits from the base
sidl exception class SIDLException
.
Constructor Summary | |
---|---|
GrammarException(ParseException ex,
int production)
Create a new exception object using the specified parser exception and production identifier. |
Method Summary | |
---|---|
java.lang.String |
getErrorToken()
Return the token string causing the grammar error. |
java.lang.String[] |
getExpectedTokens()
Return the array of tokens expected by the grammar parser. |
java.lang.String |
getMessage()
Generate an error message corresponding to this exception. |
Methods inherited from class gov.llnl.babel.parsers.sidl.SIDLException |
---|
getColumnNumber, getLineNumber, getProductionNumber |
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 GrammarException(ParseException ex, int production)
Method Detail |
---|
public java.lang.String getErrorToken()
public java.lang.String[] getExpectedTokens()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |