java.io.Serializable
public class JSONException
extends java.lang.RuntimeException
Constructor | Description |
---|---|
JSONException(java.lang.String message) |
Constructs a JSONException with an explanatory message.
|
JSONException(java.lang.Throwable cause) |
Constructs a new JSONException with the specified cause.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Throwable |
getCause() |
Returns the cause of this exception or null if the cause is nonexistent
or unknown.
|
public JSONException(java.lang.String message)
message
- Detail about the reason for the exception.public JSONException(java.lang.Throwable cause)
cause
- The cause.