|
||||||||||
| 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.bc.jexp.ParseException
public class ParseException
An exception thrown by a ParserX.parse() call in order to
signal a parser error.
| Constructor Summary | |
|---|---|
ParseException(int line,
int column,
String message)
Constructs a new parser exception with the given position in source code and with the given message. |
|
ParseException(String message)
Constructs a new parser exception with the given message. |
|
| Method Summary | |
|---|---|
int |
getColumn()
Gets the _column number in the source code in which the error occurred. |
int |
getLine()
Gets the source code _line number in which the error occurred. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 ParseException(String message)
message - the error message
public ParseException(int line,
int column,
String message)
line - the source code _line number in which the error occurredcolumn - the _column number in the source code in which the error occurredmessage - the error message| Method Detail |
|---|
public final int getLine()
-1 if not availablepublic final int getColumn()
-1 if not available
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||