aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/RegistrationWindowController.java24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/RegistrationWindowController.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/RegistrationWindowController.java
index 1a4a4e9..8b1e069 100644
--- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/RegistrationWindowController.java
+++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/RegistrationWindowController.java
@@ -146,9 +146,7 @@ public class RegistrationWindowController {
if (chosenEmployees.contains(e)) employeeListController.selectEmployee(e);
});
} catch (ServiceException e) {
- LOG.warn(
- "Caught ServiceException while getting employees. Showing it to user. Error message: {}",
- e.getMessage());
+ LOG.error("ServiceException in updateEmplList(). ", e);
Alert alert = new Alert(AlertType.ERROR);
alert.setTitle("Personal - Fehler!");
alert.setHeaderText("Beim Auflisten des Personals ist ein Fehler aufgetreten.");
@@ -195,17 +193,14 @@ public class RegistrationWindowController {
vbVehicles.getChildren().add(vp.getRootElement());
}
} catch (ServiceException e) {
- LOG.warn(
- "Caught ServiceException while getting vehicles. Showing it to user. Error message: {}",
- e);
+ LOG.error("ServiceException in updateVehList(). ", e);
Alert alert = new Alert(AlertType.ERROR);
alert.setTitle("Fahrzeuge - Fehler!");
alert.setHeaderText("Beim Auflisten der Fahrzeug ist ein Fehler aufgetreten.");
alert.setContentText(e.getMessage());
alert.show();
} catch (IOException e) {
- LOG.error(
- "Caught IOException while updateVehList. Showing it to user.", e.getMessage());
+ LOG.error("IOException in updateVehList(). ", e);
Alert alert = new Alert(AlertType.ERROR);
alert.setTitle("Fehler");
alert.setContentText(e.getMessage());
@@ -264,28 +259,21 @@ public class RegistrationWindowController {
createOperationController.setVisible(true);
reset();
} catch (InvalidVehicleException e) {
- LOG.info(
- "Caught InvalidVehicleException. Showing it to user. Error message: {}",
- e.getClass().toString(),
- e.getMessage());
+ LOG.debug("Validation of Vehicle in Registration failed.");
Alert alert = new Alert(AlertType.WARNING);
alert.setTitle("Ungültiges Fahrzeug");
alert.setHeaderText("Das spezifizierte Fahrzeug ist nicht gültig.");
alert.setContentText(e.getMessage());
alert.show();
} catch (ServiceException e) {
- LOG.warn(
- "Caught ServiceException while getting vehicles. Showing it to user. Error message: {}",
- e.getMessage());
+ LOG.error("ServiceException in create(). ", e);
Alert alert = new Alert(AlertType.ERROR);
alert.setTitle("Anmeldung - Fehler!");
alert.setHeaderText("Beim Erstellen der Anmeldung ist ein Fehler aufgetreten.");
alert.setContentText(e.getMessage());
alert.show();
} catch (InvalidRegistrationException e) {
- LOG.info(
- "Caught InvalidRegistrationException. Showing it to user. Error message: {}",
- e.getMessage());
+ LOG.debug("Validation of Registration failed.");
Alert alert = new Alert(AlertType.WARNING);
alert.setTitle("Ungültige Eingabe");
alert.setHeaderText(