Package org.json

Class JSONException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    JSONPointerException

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

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      Serialization ID
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONException​(java.lang.String message)
      Constructs a JSONException with an explanatory message.
      JSONException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a JSONException with an explanatory message and cause.
      JSONException​(java.lang.Throwable cause)
      Constructs a new JSONException with the specified cause.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serialization ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • JSONException

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

        public JSONException​(java.lang.String message,
                             java.lang.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​(java.lang.Throwable cause)
        Constructs a new JSONException with the specified cause.
        Parameters:
        cause - The cause.