Class JsonValueException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SchemaException

public class JsonValueException extends JsonException
An exception that is thrown during JSON value operations.
See Also:
  • Constructor Details

    • JsonValueException

      public JsonValueException(JsonValue value)
      Constructs a new exception with the specified JSON value and null as its detail message.
      Parameters:
      value - The JSON value.
    • JsonValueException

      public JsonValueException(JsonValue value, String message)
      Constructs a new exception with the specified JSON value and detail message.
      Parameters:
      value - The JSON value.
      message - The message.
    • JsonValueException

      public JsonValueException(JsonValue value, Throwable cause)
      Constructs a new exception with the specified JSON value and cause.
      Parameters:
      value - The JSON value.
      cause - The cause.
    • JsonValueException

      public JsonValueException(JsonValue value, String message, Throwable cause)
      Constructs a new exception with the specified JSON value, detail message and cause.
      Parameters:
      value - The JSON value.
      message - The message.
      cause - The cause.
  • Method Details

    • getMessage

      public String getMessage()
      Returns the detail message string of this exception.
      Overrides:
      getMessage in class Throwable
      Returns:
      The detail message string of this exception.
    • getJsonValue

      public JsonValue getJsonValue()
      Returns the JSON value for which the exception was thrown.
      Returns:
      The JSON value for which the exception was thrown.