Class JSONException

  • All Implemented Interfaces:
    java.io.Serializable

    public class JSONException
    extends java.lang.Exception
    An exception thrown to indicate an anomaly during JSON parsing.
    Author:
    Chris Burdess
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONException()
      Constructor for a JSON exception with no message.
      JSONException​(java.lang.String message)
      Constructor for a JSON exception with the specified message.
      JSONException​(java.lang.String message, java.lang.Throwable cause)
      Constructor for a JSON exception with the specified message and underlying 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
    • Constructor Detail

      • JSONException

        public JSONException()
        Constructor for a JSON exception with no message.
      • JSONException

        public JSONException​(java.lang.String message)
        Constructor for a JSON exception with the specified message.
        Parameters:
        message - the exception message
      • JSONException

        public JSONException​(java.lang.String message,
                             java.lang.Throwable cause)
        Constructor for a JSON exception with the specified message and underlying cause.
        Parameters:
        message - the exception message
        cause - the underlying cause of this message