Class JSONException

  • All Implemented Interfaces:

    public class JSONException
    extends java.lang.Exception
    This class was a duplicate of org.json.JSONException(file version 2010-12-24). Since 11.3.1 it has become a wrapper of org.json.JSONException(org.json version 20180130). While it still keeps the old version's method signatures and documentations, some behaviours may have been changed. The JSONException is thrown by the classes when things are amiss.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      JSONException​(java.lang.String message)
      Constructs a JSONException with an explanatory message.
      JSONException​(java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.Throwable getCause()  
      int hashCode()  
      • Methods inherited from class java.lang.Throwable

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

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JSONException

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

        public JSONException​(java.lang.Throwable cause)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • getCause

        public java.lang.Throwable getCause()
        getCause in class java.lang.Throwable