public class ParseException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 unknownpublic 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 unknownpublic 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.Throwable
public java.lang.String getErrorMessage()