aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dto/EmployeeValidator.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dto/EmployeeValidator.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dto/EmployeeValidator.java
index 994be3f..82033b9 100644
--- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dto/EmployeeValidator.java
+++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/dto/EmployeeValidator.java
@@ -12,17 +12,17 @@ public class EmployeeValidator {
if (employee.name() == null || employee.name().trim().length() == 0) {
LOG.info("Invalid Employee: Name was not set");
- throw new InvalidEmployeeException("name not set");
+ throw new InvalidEmployeeException("Name darf nicht leer sein!");
}
if (employee.birthday() == null) {
LOG.info("Invalid Employee: Birthday was not set");
- throw new InvalidEmployeeException("birthday not set");
+ throw new InvalidEmployeeException("Geburtsdatum darf nicht leer sein!");
}
if (employee.educationLevel() == null) {
LOG.info("Invalid Employee: EducationLevel was not set");
- throw new InvalidEmployeeException("educationLevel not set");
+ throw new InvalidEmployeeException("Ausbildungsgrad darf nicht leer sein!");
}
return true;