Class JSONException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.json.JSONException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JSONPointerException
The JSONException is thrown by the JSON.org classes when things are amiss.
- Version:
- 2015-12-09
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJSONException(String message) Constructs a JSONException with an explanatory message.JSONException(String message, Throwable cause) Constructs a JSONException with an explanatory message and cause.JSONException(Throwable cause) Constructs a new JSONException with the specified cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization ID- See Also:
-
-
Constructor Details
-
JSONException
Constructs a JSONException with an explanatory message.- Parameters:
message- Detail about the reason for the exception.
-
JSONException
-
JSONException
Constructs a new JSONException with the specified cause.- Parameters:
cause- The cause.
-