Interface ValidationFailure
public interface ValidationFailure
A failed validation.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the exception corresponding to the validation failure.Returns the message corresponding to the validation failure.getType()
Returns the type of exception that is associated with this failure.
-
Method Details
-
getMessage
String getMessage()Returns the message corresponding to the validation failure.- Returns:
- the message corresponding to the validation failure
-
getType
Returns the type of exception that is associated with this failure.- Returns:
- the type of exception that is associated with this failure
-
getException
Throwable getException()Returns the exception corresponding to the validation failure.- Returns:
- a
RuntimeException
orError
-