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
public class JSONParseException
- extends RuntimeException
Exception throw when invalid JSON is passed to JSONParser.
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
JSONParseException
public JSONParseException(String s,
int pos)
JSONParseException
public JSONParseException(String s,
int pos,
Throwable cause)
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable