Package org.json
Class JSONException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.json.JSONException
-
- All Implemented Interfaces:
Serializable
@Deprecated public class JSONException extends RuntimeException
Deprecated.Use javax.json or other other json libraries insteadThe JSONException is thrown by the JSON.org classes when things are amiss.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JSONException(String message)
Deprecated.Constructs a JSONException with an explanatory message.JSONException(Throwable cause)
Deprecated.Constructs a new JSONException with the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Throwable
getCause()
Deprecated.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JSONException
public JSONException(String message)
Deprecated.Constructs a JSONException with an explanatory message.- Parameters:
message
- Detail about the reason for the exception.
-
JSONException
public JSONException(Throwable cause)
Deprecated.Constructs a new JSONException with the specified cause.- Parameters:
cause
- The cause.
-
-