Class JSONParseException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class JSONParseException
    extends java.lang.RuntimeException
    Deprecated.
    there is no replacement for this class

    Exception that is thrown when invalid JSON is encountered by the parser.

    The error message is formatted so that it points to the first.

    This exception creates a message that points to the first offending character in the JSON string:

     { "x" : 3, "y" : 4, some invalid json.... }
                         ^
     
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONParseException​(java.lang.String jsonString, int position)
      Deprecated.
      Creates a new instance.
      JSONParseException​(java.lang.String jsonString, int position, java.lang.Throwable cause)
      Deprecated.
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Deprecated.
       
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • JSONParseException

        public JSONParseException​(java.lang.String jsonString,
                                  int position)
        Deprecated.
        Creates a new instance.
        Parameters:
        jsonString - the JSON being parsed
        position - the position of the failure
      • JSONParseException

        public JSONParseException​(java.lang.String jsonString,
                                  int position,
                                  java.lang.Throwable cause)
        Deprecated.
        Creates a new instance.
        Parameters:
        jsonString - the JSON being parsed
        position - the position of the failure
        cause - the root cause
    • Method Detail

      • getMessage

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