Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.inet.taskplanner.server.api.error.ValidationException
- All Implemented Interfaces:
Serializable
Thrown if validation of
Note that this exception can contain
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 Summary
ConstructorsConstructorDescriptionValidationException
(String... errors) Creates a new ValidationException instance.ValidationException
(List<String> errors) Creates a new ValidationException instance with a list of errors. -
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
Creates a new ValidationException instance.- Parameters:
errors
- the errors to add- Since:
- taskplanner 3.0
-
ValidationException
Creates a new ValidationException instance with a list of errors.- Parameters:
errors
- list of found errors.- Since:
- taskplanner 3.0
-
-
Method Details
-
getErrors
Returns the errors of this ValidationException- Returns:
- the errors of this exception
- Since:
- taskplanner 3.0
-