Class JSONParseException

  • All Implemented Interfaces:
    Serializable

    Deprecated. 
    there is no replacement for this class

    @Deprecated
    public class JSONParseException
    extends RuntimeException

    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 Detail

      • JSONParseException

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

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