Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.arasdenizhan.core.exception.ValidationException
- All Implemented Interfaces:
Serializable
Exception thrown by the validator when one or more fields fail validation.
Aggregates the error messages of all failed fields into a single exception message.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
- Parameters:
validationErrors- List of error objects for the library. Each one will be used to create an exception message.
-