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
- Direct Known Subclasses:
SchemaException
An exception that is thrown during JSON value operations.
- See Also:
-
Constructor Summary
ConstructorDescriptionJsonValueException
(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
Modifier and TypeMethodDescriptionReturns the JSON value for which the exception was thrown.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 Details
-
JsonValueException
Constructs a new exception with the specified JSON value andnull
as its detail message.- Parameters:
value
- The JSON value.
-
JsonValueException
Constructs a new exception with the specified JSON value and detail message.- Parameters:
value
- The JSON value.message
- The message.
-
JsonValueException
Constructs a new exception with the specified JSON value and cause.- Parameters:
value
- The JSON value.cause
- The cause.
-
JsonValueException
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
Returns the detail message string of this exception.- Overrides:
getMessage
in classThrowable
- Returns:
- The detail message string of this exception.
-
getJsonValue
Returns the JSON value for which the exception was thrown.- Returns:
- The JSON value for which the exception was thrown.
-