Class ValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.inet.taskplanner.server.api.error.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException extends Exception
Thrown if validation of triggers, jobs or resultActions finds problems.
Note that this exception can contain more than one error! Error messages passed to this are expected to be localized.
Since:
taskplanner 3.0
See Also:
  • Constructor Details

    • ValidationException

      public ValidationException(String... errors)
      Creates a new ValidationException instance.
      Parameters:
      errors - the errors to add
      Since:
      taskplanner 3.0
    • ValidationException

      public ValidationException(List<String> errors)
      Creates a new ValidationException instance with a list of errors.
      Parameters:
      errors - list of found errors.
      Since:
      taskplanner 3.0
  • Method Details

    • getErrors

      public List<String> getErrors()
      Returns the errors of this ValidationException
      Returns:
      the errors of this exception
      Since:
      taskplanner 3.0