Package org.bson.json
Class JsonParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.bson.json.JsonParseException
-
- All Implemented Interfaces:
java.io.Serializable
public class JsonParseException extends java.lang.RuntimeException
JSONParseException indicates some exception happened during JSON processing.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonParseException()
Constructs a new runtime exception with null as its detail message.JsonParseException(java.lang.String s)
Constructs a new runtime exception with the specified detail message.JsonParseException(java.lang.String pattern, java.lang.Object... args)
Constructs a new runtime exception with string formatted using specified pattern and arguments.JsonParseException(java.lang.Throwable t)
Create a JSONParseException with the givenThrowable
cause.
-
-
-
Constructor Detail
-
JsonParseException
public JsonParseException()
Constructs a new runtime exception with null as its detail message.
-
JsonParseException
public JsonParseException(java.lang.String s)
Constructs a new runtime exception with the specified detail message.- Parameters:
s
- The detail message.
-
JsonParseException
public JsonParseException(java.lang.String pattern, java.lang.Object... args)
Constructs a new runtime exception with string formatted using specified pattern and arguments.- Parameters:
pattern
- Aformat string
.args
- the arguments to insert into the pattern String
-
JsonParseException
public JsonParseException(java.lang.Throwable t)
Create a JSONParseException with the givenThrowable
cause.- Parameters:
t
- the throwable root case
-
-