public class ValidationException extends SchemaException
This exception may include information for locating the error
in the original JSON document object. Note that although the application
will receive a ValidationException as the argument to the handlers
in the ErrorHandler
interface,
the application is not actually required to throw the exception;
instead, it can simply read the information in it and take a
different action.
Since this exception is a subclass of SchemaException
, it inherits the ability to wrap another exception.
SchemaException
,
Serialized FormConstructor and Description |
---|
ValidationException(Exception e,
JsonPointer path)
Create an exception with the given cause and path.
|
ValidationException(String string)
Create an exception with the given message.
|
ValidationException(String message,
Exception e,
JsonPointer path)
Create an exception with the given message, cause and path.
|
ValidationException(String message,
JsonPointer path)
Create an exception with the given message and path.
|
ValidationException(String message,
JsonPointer path,
Object value)
Create an exception with the given message, value and path.
|
ValidationException(String string,
Throwable throwable)
Create an exception with the given message and cause.
|
ValidationException(String string,
Throwable throwable,
JsonPointer path)
Create an exception with the given message, cause and path.
|
getException, getMessage, toString
getJsonValue
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ValidationException(String string)
string
- The message.public ValidationException(String string, Throwable throwable)
string
- The message.throwable
- The cause.public ValidationException(String string, Throwable throwable, JsonPointer path)
string
- The message.throwable
- The cause.path
- The path.public ValidationException(String message, JsonPointer path)
message
- The message.path
- The path.public ValidationException(String message, JsonPointer path, Object value)
message
- The message.path
- The path.value
- The value.public ValidationException(Exception e, JsonPointer path)
e
- The cause.path
- The path.public ValidationException(String message, Exception e, JsonPointer path)
message
- The message.e
- The cause.path
- The path.Copyright © 2025 Open Identity Platform Community. All rights reserved.