|
|||||||||||
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.parser.ParseException
A parse exception.
Field Summary | |
static int |
ANALYSIS_ERROR
The analysis error type constant. |
static int |
INTERNAL_ERROR
The internal error type constant. |
static int |
INVALID_TOKEN_ERROR
The invalid token error type constant. |
static int |
IO_ERROR
The I/O error type constant. |
static int |
UNEXPECTED_CHAR_ERROR
The unexpected character error type constant. |
static int |
UNEXPECTED_EOF_ERROR
The unexpected end of file error type constant. |
static int |
UNEXPECTED_TOKEN_ERROR
The unexpected token error type constant. |
Constructor Summary | |
ParseException(int type,
java.lang.String info,
int line,
int column)
Creates a new parse exception |
Method Summary | |
int |
getColumn()
Returns the column number where the error occured. |
int |
getLine()
Returns the line number where the error occured. |
java.lang.String |
getMessage()
Returns a default 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 |
Field Detail |
public static final int INTERNAL_ERROR
public static final int IO_ERROR
public static final int UNEXPECTED_EOF_ERROR
public static final int UNEXPECTED_CHAR_ERROR
public static final int UNEXPECTED_TOKEN_ERROR
public static final int INVALID_TOKEN_ERROR
public static final int ANALYSIS_ERROR
Constructor Detail |
public ParseException(int type, java.lang.String info, int line, int column)
type
- the parse error typeinfo
- the additional informationline
- the line number, or -1 for unknowncolumn
- the column number, or -1 for unknownMethod Detail |
public int getLine()
public int getColumn()
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 |