Serializable
public class JSONException extends RuntimeException
Constructor | Description |
---|---|
JSONException(String message) |
Constructs a JSONException with an explanatory message.
|
JSONException(Throwable cause) |
Constructs a new JSONException with the specified cause.
|
Modifier and Type | Method | Description |
---|---|---|
Throwable |
getCause() |
Returns the cause of this exception or null if the cause is nonexistent
or unknown.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public JSONException(String message)
message
- Detail about the reason for the exception.public JSONException(Throwable cause)
cause
- The cause.Copyright © 2018. All rights reserved.