ValidationException

public class ValidationException extends IllegalArgumentException

Thrown when there were problems while validating

Constructors

ValidationException

public ValidationException(String objectType, Set<TaskErrorDto> taskErrors)

Exception constructor.

Parameters:
  • objectType – the type of the object
  • taskErrors – the set of errors

Methods

getMessage

public String getMessage()

Generates message based on the given errors and type of the object.

Returns:the message

getTaskErrors

public Set<TaskErrorDto> getTaskErrors()