Package com.unboundid.util.json
Class JSONException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.unboundid.util.LDAPSDKException
-
- com.unboundid.util.json.JSONException
-
- All Implemented Interfaces:
java.io.Serializable
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class JSONException extends LDAPSDKException
This class defines an exception that can be thrown if a problem occurs while performing JSON processing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JSONException(java.lang.String message)
Creates a new JSON exception with the provided message.JSONException(java.lang.String message, java.lang.Throwable cause)
Creates a new JSON exception with the provided message and cause.
-
Method Summary
-
Methods inherited from class com.unboundid.util.LDAPSDKException
getExceptionMessage, getExceptionMessage, toString, toString
-
-
-
-
Constructor Detail
-
JSONException
public JSONException(@NotNull java.lang.String message)
Creates a new JSON exception with the provided message.- Parameters:
message
- A message explaining the problem that occurred.
-
JSONException
public JSONException(@NotNull java.lang.String message, @Nullable java.lang.Throwable cause)
Creates a new JSON exception with the provided message and cause.- Parameters:
message
- A message explaining the problem that occurred.cause
- The underlying cause for this exception.
-
-