Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vertx.core.VertxException
io.vertx.json.schema.ValidationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ValidationExceptionImpl
This is the main class for every Validation flow related errors
- Author:
- Francesco Guardiani @slinkydeveloper
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValidationException(String message, String keyword, Object input) protectedValidationException(String message, String keyword, Object input, boolean noStackTrace) protectedValidationException(String message, Throwable cause, String keyword, Object input) protectedValidationException(String message, Throwable cause, String keyword, Object input, boolean noStackTrace) -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationExceptionstatic ValidationExceptionstatic ValidationExceptioninput()keyword()toString()Methods inherited from class VertxException
noStackTrace, noStackTrace, noStackTraceMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
inputScope
-
-
Constructor Details
-
ValidationException
-
ValidationException
-
ValidationException
-
ValidationException
-
-
Method Details
-
create
public static ValidationException create(String message, String keyword, Object input, Collection<Throwable> causes) -
create
public static ValidationException create(String message, String keyword, Object input, Throwable cause) -
create
-
keyword
- Returns:
- the keyword that failed the validation, if any
-
input
- Returns:
- the input that triggered the error
-
inputScope
- Returns:
- the scope of the input, where the validation failed.
-
toString
-