Package com.mongodb.util
Class JSONParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.util.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 Summary
Constructors Constructor Description JSONParseException(String jsonString, int position)
Deprecated.Creates a new instance.JSONParseException(String jsonString, int position, Throwable cause)
Deprecated.Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getMessage()
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JSONParseException
public JSONParseException(String jsonString, int position)
Deprecated.Creates a new instance.- Parameters:
jsonString
- the JSON being parsedposition
- the position of the failure
-
-
Method Detail
-
getMessage
public String getMessage()
Deprecated.- Overrides:
getMessage
in classThrowable
-
-