public class ValidationException extends VertxException
Modifier | Constructor and Description |
---|---|
protected |
ValidationException(String message,
String keyword,
Object input) |
protected |
ValidationException(String message,
Throwable cause,
String keyword,
Object input) |
Modifier and Type | Method and Description |
---|---|
static ValidationException |
createException(String message,
String keyword,
Object input) |
static ValidationException |
createException(String message,
String keyword,
Object input,
Collection<Throwable> causes) |
static ValidationException |
createException(String message,
String keyword,
Object input,
Throwable cause) |
Object |
input()
Returns the input that triggered the error
|
String |
keyword()
Returns the keyword that failed the validation, if any
|
Schema |
schema()
Returns the schema that failed the validation
|
JsonPointer |
scope()
Returns the scope of the schema that failed the validation
|
void |
setSchema(Schema schema) |
void |
setScope(JsonPointer scope) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static ValidationException createException(String message, String keyword, Object input, Collection<Throwable> causes)
public static ValidationException createException(String message, String keyword, Object input, Throwable cause)
public static ValidationException createException(String message, String keyword, Object input)
public String keyword()
public Object input()
public Schema schema()
public JsonPointer scope()
public void setSchema(Schema schema)
public void setScope(JsonPointer scope)
Copyright © 2021 Eclipse. All rights reserved.