public class JSONException
extends java.lang.RuntimeException
| code(range) | error code | description |
|---|---|---|
| 000-099 | (all) | reserved. |
| 100-199 | 100 | fails to format. |
| 150 | fails to preformat. | |
| (others) | reserved. | |
| 200-299 | 200 | fails to parse. |
| 250 | fails to postparse. | |
| (others) | reserved. | |
| 300-899 | (all) | reserved. |
| 900- | (all) | user's area. |
| Modifier and Type | Field and Description |
|---|---|
private long |
columnNumber |
private int |
errorID |
static int |
FORMAT_ERROR |
private long |
lineNumber |
private long |
offset |
static int |
PARSE_ERROR |
static int |
POSTPARSE_ERROR |
static int |
PREFORMAT_ERROR |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
JSONException(java.lang.String message,
int id) |
JSONException(java.lang.String message,
int id,
long lineNumber,
long columnNumber,
long offset) |
JSONException(java.lang.String message,
int id,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
long |
getColumnNumber()
Returns the column number where the error was found.
|
int |
getErrorCode() |
long |
getErrorOffset()
Returns the offset in line where the error was found.
|
long |
getLineNumber()
Returns the line number where the error was found.
|
private static final long serialVersionUID
public static final int FORMAT_ERROR
public static final int PREFORMAT_ERROR
public static final int PARSE_ERROR
public static final int POSTPARSE_ERROR
private int errorID
private long lineNumber
private long columnNumber
private long offset
public JSONException(java.lang.String message,
int id,
long lineNumber,
long columnNumber,
long offset)
public JSONException(java.lang.String message,
int id,
java.lang.Throwable cause)
public JSONException(java.lang.String message,
int id)
public int getErrorCode()
public long getLineNumber()
public long getColumnNumber()
public long getErrorOffset()