Package org.forgerock.json
Class JsonValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.forgerock.json.JsonException
-
- org.forgerock.json.JsonValueException
-
- All Implemented Interfaces:
Serializable
public class JsonValueException extends JsonException
An exception that is thrown during JSON value operations.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonValueException(JsonValue value)
Constructs a new exception with the specified JSON value andnull
as its detail message.JsonValueException(JsonValue value, String message)
Constructs a new exception with the specified JSON value and detail message.JsonValueException(JsonValue value, String message, Throwable cause)
Constructs a new exception with the specified JSON value, detail message and cause.JsonValueException(JsonValue value, Throwable cause)
Constructs a new exception with the specified JSON value and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonValue
getJsonValue()
Returns the JSON value for which the exception was thrown.String
getMessage()
Returns the detail message string of this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JsonValueException
public JsonValueException(JsonValue value)
Constructs a new exception with the specified JSON value andnull
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.
-
-
Method Detail
-
getMessage
public String getMessage()
Returns the detail message string of this exception.- Overrides:
getMessage
in classThrowable
- 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.
-
-