Package com.mongodb.util
Class JSONParseException
-
-
-
-
- com.mongodb.util.JSONParseException
-
-
-
-
- All Implemented Interfaces:
public class JSONParseException extends
Deprecated.there is no replacement for this classException 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description getMessage()
Deprecated.
-
-
-
Constructor Detail
-
JSONParseException
public JSONParseException( jsonString, int position)
Deprecated.Creates a new instance.- Parameters:
jsonString
- the JSON being parsedposition
- the position of the failure
-
JSONParseException
public JSONParseException( jsonString, int position, cause)
Deprecated.Creates a new instance.- Parameters:
jsonString
- the JSON being parsedposition
- the position of the failurecause
- the root cause
-
-