Package org.codehaus.jettison.json
Class JSONException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.codehaus.jettison.json.JSONException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JSONSequenceTooLargeException
The JSONException is thrown by the JSON.org classes then things are amiss.
- Version:
- 2
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJSONException
(String message) Constructs a JSONException with an explanatory message.JSONException
(String message, int line, int column) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
line
private int line -
column
private int column
-
-
Constructor Details
-
JSONException
Constructs a JSONException with an explanatory message.- Parameters:
message
- Detail about the reason for the exception.
-
JSONException
-
JSONException
-
-
Method Details
-
getColumn
public int getColumn() -
getLine
public int getLine()
-