net.arnx.jsonic
Class JSONException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.arnx.jsonic.JSONException
- All Implemented Interfaces:
- Serializable
public class JSONException
- extends RuntimeException
Signals that an error has been reached unexpectedly while formating or parsing.
Summary of error codes
| 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. |
- Author:
- izuno
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
FORMAT_ERROR
public static final int FORMAT_ERROR
- See Also:
- Constant Field Values
PREFORMAT_ERROR
public static final int PREFORMAT_ERROR
- See Also:
- Constant Field Values
PARSE_ERROR
public static final int PARSE_ERROR
- See Also:
- Constant Field Values
POSTPARSE_ERROR
public static final int POSTPARSE_ERROR
- See Also:
- Constant Field Values
JSONException
public JSONException(String message,
int id,
long lineNumber,
long columnNumber,
long offset)
JSONException
public JSONException(String message,
int id,
Throwable cause)
JSONException
public JSONException(String message,
int id)
getErrorCode
public int getErrorCode()
getLineNumber
public long getLineNumber()
- Returns the line number where the error was found.
getColumnNumber
public long getColumnNumber()
- Returns the column number where the error was found.
getErrorOffset
public long getErrorOffset()
- Returns the offset in line where the error was found.