public class ParseException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_UNEXPECTED_CHAR |
static int |
ERROR_UNEXPECTED_DUPLICATE_KEY |
static int |
ERROR_UNEXPECTED_EOF |
static int |
ERROR_UNEXPECTED_EXCEPTION |
static int |
ERROR_UNEXPECTED_LEADING_0 |
static int |
ERROR_UNEXPECTED_TOKEN |
static int |
ERROR_UNEXPECTED_UNICODE |
private int |
errorType |
private int |
position |
private static long |
serialVersionUID |
private java.lang.Object |
unexpectedObject |
| Constructor and Description |
|---|
ParseException(int position,
int errorType,
java.lang.Object unexpectedObject) |
ParseException(int position,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorType() |
int |
getPosition() |
java.lang.Object |
getUnexpectedObject() |
private static java.lang.String |
toMessage(int position,
int errorType,
java.lang.Object unexpectedObject) |
private static final long serialVersionUID
public static final int ERROR_UNEXPECTED_CHAR
public static final int ERROR_UNEXPECTED_TOKEN
public static final int ERROR_UNEXPECTED_EXCEPTION
public static final int ERROR_UNEXPECTED_EOF
public static final int ERROR_UNEXPECTED_UNICODE
public static final int ERROR_UNEXPECTED_DUPLICATE_KEY
public static final int ERROR_UNEXPECTED_LEADING_0
private int errorType
private java.lang.Object unexpectedObject
private int position
public ParseException(int position,
int errorType,
java.lang.Object unexpectedObject)
public ParseException(int position,
java.lang.Throwable cause)
public int getErrorType()
public int getPosition()
public java.lang.Object getUnexpectedObject()
private static java.lang.String toMessage(int position,
int errorType,
java.lang.Object unexpectedObject)