Class ValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ValidationException
    extends java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationException​(java.lang.String... errors)
      Creates a new ValidationException instance.
      ValidationException​(java.util.List<java.lang.String> errors)
      Creates a new ValidationException instance with a list of errors.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getErrors()
      Returns the errors of this ValidationException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValidationException

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

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

      • getErrors

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