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
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 andnullas 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 JsonValuegetJsonValue()Returns the JSON value for which the exception was thrown.StringgetMessage()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 andnullas 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:
 getMessagein 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.
 
 
 - 
 
 -