public class JSONException extends RuntimeException
Constructor and 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 and Description |
---|---|
Throwable |
getCause()
Returns the cause of this exception or null if the cause is nonexistent
or unknown.
|
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 © 2019. All rights reserved.