public static class JsonParser.Escape extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static int |
BAD_ENCODING
Invalid encoding.
|
static int |
BAD_ESCAPE
A bad escape sequence was encountered.
|
static int |
CONVERSION
Data-type conversion error.
|
static int |
GENERAL
General exception.
|
static int |
INVALID_STATE
An method was invokeD when the parser was in an invalid state for it.
|
static int |
IOERROR
Input/Output error.
|
static int |
MALFORMED
Malformed input data - the data was not valid JSON data-interchange
format.
|
static int |
METHOD_ERROR
An method could not be reflectively retrieved or invoked.
|
static int |
SUBCLSMIN
Minimum code required for any sub-class.
|
| Constructor and Description |
|---|
JsonParser.Escape(int code,
String detail)
Create an exception with a code and details.
|
JsonParser.Escape(int code,
String detail,
Throwable cause)
Create an exception with a code and details.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Return the numeric code for this exception condition.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int GENERAL
public static final int IOERROR
public static final int BAD_ENCODING
public static final int MALFORMED
public static final int BAD_ESCAPE
public static final int INVALID_STATE
public static final int METHOD_ERROR
public static final int CONVERSION
public static final int SUBCLSMIN
public JsonParser.Escape(int code,
String detail)
code - The error code.detail - Specific detail text indicating the cause of the error.public JsonParser.Escape(int code,
String detail,
Throwable cause)
code - The error code.detail - Specific detail text indicating the cause of the error.cause - The causitive throwable object, if any.Copyright © 2014 FreeLibrary. All Rights Reserved.