From f71cd953c5a9f0e474359f4fa3a0f048d206ff1f Mon Sep 17 00:00:00 2001 From: Bianca Mac Date: Mon, 17 May 2021 08:44:46 +0200 Subject: [PATCH] Deleted all error prints --- health_data_export/.gitignore | 1 + health_data_export/src/application/UICoordinator.java | 1 - .../src/application/parsing/ParsingWrapper.java | 3 --- .../src/application/parsing/ReadHandler.java | 1 - .../src/application/parsing/WriteHandler.java | 8 -------- 5 files changed, 1 insertion(+), 13 deletions(-) create mode 100644 health_data_export/.gitignore diff --git a/health_data_export/.gitignore b/health_data_export/.gitignore new file mode 100644 index 0000000..b83d222 --- /dev/null +++ b/health_data_export/.gitignore @@ -0,0 +1 @@ +/target/ diff --git a/health_data_export/src/application/UICoordinator.java b/health_data_export/src/application/UICoordinator.java index c0bcdb3..9df058d 100644 --- a/health_data_export/src/application/UICoordinator.java +++ b/health_data_export/src/application/UICoordinator.java @@ -563,7 +563,6 @@ public class UICoordinator implements ChangeListener catch (MalformedURLException e) { //do nth - e.printStackTrace(); } } diff --git a/health_data_export/src/application/parsing/ParsingWrapper.java b/health_data_export/src/application/parsing/ParsingWrapper.java index 240bad0..83bb4a3 100644 --- a/health_data_export/src/application/parsing/ParsingWrapper.java +++ b/health_data_export/src/application/parsing/ParsingWrapper.java @@ -79,7 +79,6 @@ public class ParsingWrapper } catch (Exception e) { - e.printStackTrace(); throw new WrappedException(e, Text.E_WRITE_TO_TEMP_FILES); } @@ -108,7 +107,6 @@ public class ParsingWrapper } catch(Exception e) { - e.printStackTrace(); //file couldn't be created due to exception } if(!created) @@ -141,7 +139,6 @@ public class ParsingWrapper } catch(Exception e) { - e.printStackTrace(); //Problem with the file streams, Nothing a user could change so: return null; } diff --git a/health_data_export/src/application/parsing/ReadHandler.java b/health_data_export/src/application/parsing/ReadHandler.java index e3f0e2e..fc67d23 100644 --- a/health_data_export/src/application/parsing/ReadHandler.java +++ b/health_data_export/src/application/parsing/ReadHandler.java @@ -79,7 +79,6 @@ public class ReadHandler extends DefaultHandler } catch (ParseException e) { dateOfBirth=null; - e.printStackTrace(); //do nth if parsing error } } diff --git a/health_data_export/src/application/parsing/WriteHandler.java b/health_data_export/src/application/parsing/WriteHandler.java index 17741fc..5a5a52f 100644 --- a/health_data_export/src/application/parsing/WriteHandler.java +++ b/health_data_export/src/application/parsing/WriteHandler.java @@ -128,13 +128,11 @@ public class WriteHandler extends DefaultHandler { errorMessages.append(e.getReason()); errorMessages.append("\n"); - e.getException().printStackTrace(); } catch (Exception e) { errorMessages.append(Text.E_CREATE_TEMP_FILES); errorMessages.append("\n"); - e.printStackTrace(); } } @@ -207,7 +205,6 @@ public class WriteHandler extends DefaultHandler } catch (ParseException e) { - e.printStackTrace(); // bad luck. Do nothing if parsing error } } @@ -267,8 +264,6 @@ public class WriteHandler extends DefaultHandler { errorMessages.append(e.getReason()); errorMessages.append("\n"); - // TODO: alle prints entfernen - e.getException().printStackTrace(); } } @@ -377,7 +372,6 @@ public class WriteHandler extends DefaultHandler { errorMessages.append(Text.E_WRITE_TO_TEMP_FILES); errorMessages.append("\n"); - e.printStackTrace(); } } resetSubAttributes(); @@ -476,7 +470,6 @@ public class WriteHandler extends DefaultHandler } catch (IOException e) { - e.printStackTrace(); throw new WrappedException(e, Text.E_WRITE_TO_TEMP_FILES); } } @@ -501,7 +494,6 @@ public class WriteHandler extends DefaultHandler } catch (IOException e) { - e.printStackTrace(); throw new WrappedException(e, Text.E_WRITE_TO_TEMP_FILES); } }