public class SchemaException extends JsonValueException
If the validator needs to include information about a
specific location in an JSON document, it should use the
ValidationException
subclass.
ValidationException
,
Serialized FormConstructor and Description |
---|
SchemaException(JsonValue value,
Exception e)
Create a new SchemaException wrapping an existing exception.
|
SchemaException(JsonValue value,
String message)
Create the exception with the given value and message.
|
SchemaException(JsonValue value,
String message,
Exception e)
Create a new SchemaException from an existing exception.
|
SchemaException(JsonValue value,
String message,
Throwable throwable)
Create the exception with the given value, message and cause.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
Return the embedded exception, if any.
|
String |
getMessage()
Return a detail message for this exception.
|
String |
toString()
Override toString to pick up any embedded exception.
|
getJsonValue
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public SchemaException(JsonValue value, String message)
value
- The value.message
- The message.public SchemaException(JsonValue value, String message, Throwable throwable)
value
- The value.message
- The message.throwable
- The cause.public SchemaException(JsonValue value, Exception e)
The existing exception will be embedded in the new one, and its message will become the default message for the SchemaException.
value
- The value.e
- The exception to be wrapped in a SchemaException.public SchemaException(JsonValue value, String message, Exception e)
The existing exception will be embedded in the new one, but the new exception will have its own message.
value
- The value.message
- The detail message.e
- The exception to be wrapped in a SchemaException.public String getMessage()
If there is an embedded exception, and if the SchemaException has no detail message of its own, this method will return the detail message from the embedded exception.
getMessage
in class JsonValueException
public Exception getException()
Copyright © 2025 Open Identity Platform Community. All rights reserved.