Package org.json

Class JSONException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class JSONException
    extends java.lang.RuntimeException
    Deprecated.
    Use javax.json or other other json libraries instead
    The JSONException is thrown by the JSON.org classes when things are amiss.
    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()
      Deprecated.
       
      • 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

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JSONException

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

        public JSONException​(java.lang.Throwable cause)
        Deprecated.
        Constructs a new JSONException with the specified cause.
        Parameters:
        cause - The cause.
    • Method Detail

      • getCause

        public java.lang.Throwable getCause()
        Deprecated.
        Overrides:
        getCause in class java.lang.Throwable