Class ValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.arasdenizhan.core.exception.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException extends RuntimeException
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 Details

    • ValidationException

      public ValidationException(List<ValidationError> validationErrors)
      Parameters:
      validationErrors - List of error objects for the library. Each one will be used to create an exception message.