|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--net.percederberg.grammatica.GrammarException
A grammar validation exception. This exception is used for signalling an error in the grammar file.
| Constructor Summary | |
GrammarException(java.lang.String file,
java.lang.String message)
Creates a new grammar exception. |
|
GrammarException(java.lang.String file,
java.lang.String message,
int startLine,
int endLine)
Creates a new grammar exception. |
|
| Method Summary | |
int |
getEndLine()
Returns the end line number for the error. |
java.lang.String |
getErrorMessage()
Returns the error message. |
java.lang.String |
getFile()
Returns the grammar file name. |
java.lang.String |
getMessage()
Returns the detailed error message. |
int |
getStartLine()
Returns the start line number for the error. |
| 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(java.lang.String file,
java.lang.String message)
file - the grammar file namemessage - the detailed error message
public GrammarException(java.lang.String file,
java.lang.String message,
int startLine,
int endLine)
file - the grammar file namemessage - the detailed error messagestartLine - the starting line number, or -1 for unknownendLine - the ending line number, or -1 for unknown| Method Detail |
public java.lang.String getFile()
public int getStartLine()
public int getEndLine()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getErrorMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||