diff options
author | Felix Kehrer <felix.kehrer@gmail.com> | 2018-06-15 13:20:30 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2018-06-16 17:39:48 +0200 |
commit | 1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39 (patch) | |
tree | 23cce8bccce3cac15220bc9510b7289376a4eaa7 | |
parent | 5446cc6b355eaf8838ebc3a8ba2f4a01fa9058d4 (diff) | |
download | sepm-groupproject-1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39.tar.gz sepm-groupproject-1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39.tar.xz sepm-groupproject-1c894ed21f6cb99aaef1fe6f6dc4e76a2047ca39.zip |
Added logging to all caught Exceptions #27033
-rw-r--r-- | src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java index 5e89b66..74f9f57 100644 --- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java +++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/controller/ArchiveOperationController.java @@ -25,11 +25,15 @@ import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.AnchorPane; import javafx.scene.layout.FlowPane; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; @Controller public class ArchiveOperationController { + private static final Logger LOG = LoggerFactory.getLogger(ArchiveOperationController.class); + @FXML private ImageView imvVehicleDetail; @FXML private Label lblStatus; @FXML private AnchorPane apMainDetails; @@ -81,6 +85,7 @@ public class ArchiveOperationController { lblCompleted.setText("abgeschlossen: " + completedAmount); lblOperations.setText("Einsätze: " + list.size()); } catch (ServiceException e) { + LOG.error("ServiceException in update().", e); Alert alert = new Alert(AlertType.ERROR); alert.setTitle("Fehler"); alert.setHeaderText("Fehler!"); @@ -112,6 +117,7 @@ public class ArchiveOperationController { archiveOperationFlowPane.getChildren().add(opInAController.getRoot()); } } catch (IOException e) { + LOG.error("IOException in setFlowPane(). ", e); Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("Fehler"); alert.setHeaderText("Fehler!"); @@ -182,6 +188,7 @@ public class ArchiveOperationController { fpVehicles.getChildren().add(controller.getRoot()); } } catch (IOException e) { + LOG.error("IOException in setOperation(). ", e); Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("Fehler"); alert.setHeaderText("Fehler!"); |