Package org.bson.json

Class JsonParseException

All Implemented Interfaces:
Serializable

public class JsonParseException extends RuntimeException
JSONParseException indicates some exception happened during JSON processing.
Since:
3.0
See Also:
  • Constructor Details

    • JsonParseException

      public JsonParseException()
      Constructs a new runtime exception with null as its detail message.
    • JsonParseException

      public JsonParseException(String s)
      Constructs a new runtime exception with the specified detail message.
      Parameters:
      s - The detail message.
    • JsonParseException

      public JsonParseException(String pattern, Object... args)
      Constructs a new runtime exception with string formatted using specified pattern and arguments.
      Parameters:
      pattern - A format string.
      args - the arguments to insert into the pattern String
    • JsonParseException

      public JsonParseException(String s, Throwable t)
      Constructs a new runtime exception with the specified detail message and root cause.
      Parameters:
      s - The detail message
      t - the throwable root cause
      Since:
      4.2
    • JsonParseException

      public JsonParseException(Throwable t)
      Create a JSONParseException with the given Throwable cause.
      Parameters:
      t - the throwable root cause