Class JsonValueException

    • Constructor Detail

      • 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 Detail

      • 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.