Package org.json

Class JSONException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JSONPointerException

public class JSONException extends RuntimeException
The JSONException is thrown by the JSON.org classes when things are amiss.
Version:
2015-12-09
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization ID
      See Also:
  • Constructor Details

    • JSONException

      public JSONException(String message)
      Constructs a JSONException with an explanatory message.
      Parameters:
      message - Detail about the reason for the exception.
    • JSONException

      public JSONException(String message, Throwable cause)
      Constructs a JSONException with an explanatory message and cause.
      Parameters:
      message - Detail about the reason for the exception.
      cause - The cause.
    • JSONException

      public JSONException(Throwable cause)
      Constructs a new JSONException with the specified cause.
      Parameters:
      cause - The cause.