|
|||||||||||
| 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,
java.util.ArrayList details,
int line,
int column)
Creates a new parse exception. |
|
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. |
java.util.ArrayList |
getDetails()
Returns the additional detailed error information. |
java.lang.String |
getErrorMessage()
Returns the error message. |
int |
getErrorType()
Returns the error type. |
java.lang.String |
getInfo()
Returns the additional error information. |
int |
getLine()
Returns the line number where the error occured. |
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 |
| 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 unknown
public ParseException(int type,
java.lang.String info,
java.util.ArrayList details,
int line,
int column)
type - the parse error typeinfo - the additional informationdetails - the additional detailed informationline - the line number, or -1 for unknowncolumn - the column number, or -1 for unknown| Method Detail |
public int getErrorType()
public java.lang.String getInfo()
public java.util.ArrayList getDetails()
public int getLine()
public int getColumn()
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 | ||||||||||