public class

JSONParseException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.mongodb.util.JSONParseException

Class Overview

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.... }
                     ^
 

Summary

Public Constructors
JSONParseException(String s, int pos)
JSONParseException(String s, int pos, Throwable cause)
Public Methods
String getMessage()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public JSONParseException (String s, int pos)

public JSONParseException (String s, int pos, Throwable cause)

Public Methods

public String getMessage ()