public class JSONParseException extends Exception
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_JSON_TOO_BIG |
static int |
ERROR_STRING_TOO_LONG |
static int |
ERROR_UNEXPECTED_CHAR |
static int |
ERROR_UNEXPECTED_EXCEPTION |
static int |
ERROR_UNEXPECTED_TOKEN |
| Constructor and Description |
|---|
JSONParseException(int errorType) |
JSONParseException(int position,
int errorType,
Object unexpectedObject) |
JSONParseException(int errorType,
Object unexpectedObject) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorType() |
String |
getMessage() |
int |
getPosition() |
Object |
getUnexpectedObject() |
void |
setErrorType(int errorType) |
void |
setPosition(int position) |
void |
setUnexpectedObject(Object unexpectedObject) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic 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_STRING_TOO_LONG
public static final int ERROR_JSON_TOO_BIG
public JSONParseException(int errorType)
public JSONParseException(int errorType,
Object unexpectedObject)
public JSONParseException(int position,
int errorType,
Object unexpectedObject)
public String getMessage()
getMessage in class Throwablepublic int getErrorType()
public void setErrorType(int errorType)
public int getPosition()
JSONParser.getPosition()public void setPosition(int position)
public Object getUnexpectedObject()
Yytokenpublic void setUnexpectedObject(Object unexpectedObject)
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.