public class ParseException extends Exception
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ERROR_UNEXPECTED_CHAR |
static int |
ERROR_UNEXPECTED_EXCEPTION |
static int |
ERROR_UNEXPECTED_TOKEN |
| 构造器和说明 |
|---|
ParseException(int errorType) |
ParseException(int position,
int errorType,
Object unexpectedObject) |
ParseException(int errorType,
Object unexpectedObject) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getErrorType() |
String |
getMessage() |
int |
getPosition() |
Object |
getUnexpectedObject() |
void |
setErrorType(int errorType) |
void |
setPosition(int position) |
void |
setUnexpectedObject(Object unexpectedObject) |
public static final int ERROR_UNEXPECTED_CHAR
public static final int ERROR_UNEXPECTED_TOKEN
public static final int ERROR_UNEXPECTED_EXCEPTION
public ParseException(int errorType)
public ParseException(int errorType,
Object unexpectedObject)
public ParseException(int position,
int errorType,
Object unexpectedObject)
public int getErrorType()
public void setErrorType(int errorType)
public int getPosition()
org.json.simple.parser.JSONParser#getPosition()public void setPosition(int position)
public Object getUnexpectedObject()
org.json.simple.parser.Yytokenpublic void setUnexpectedObject(Object unexpectedObject)
public String getMessage()
getMessage 在类中 ThrowableCopyright © 2015. All rights reserved.