summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2016-01-13 08:35:06 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2016-01-13 08:35:06 +0100
commitf1c2aabb67fff9126dfeda41b1428b9c5ea941c6 (patch)
tree3718df8e5a75475d0fa4f3a70cde3880a1e02032 /src/de/fhswf/in/inf
parentb1f2ba4d5643a620bbc782feb093f03076240495 (diff)
downloadProjektthemenvergabe-f1c2aabb67fff9126dfeda41b1428b9c5ea941c6.tar.gz
Projektthemenvergabe-f1c2aabb67fff9126dfeda41b1428b9c5ea941c6.zip
Make exceptions more specific
Diffstat (limited to 'src/de/fhswf/in/inf')
-rw-r--r--src/de/fhswf/in/inf/se/projektthemenvergabe/Main.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/de/fhswf/in/inf/se/projektthemenvergabe/Main.java b/src/de/fhswf/in/inf/se/projektthemenvergabe/Main.java
index b9789c1..d8661bb 100644
--- a/src/de/fhswf/in/inf/se/projektthemenvergabe/Main.java
+++ b/src/de/fhswf/in/inf/se/projektthemenvergabe/Main.java
@@ -3,6 +3,7 @@
*/
package de.fhswf.in.inf.se.projektthemenvergabe;
+import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
@@ -90,7 +91,7 @@ public class Main extends Application
primaryStage.show();
}
- catch (Exception e)
+ catch (IOException e)
{
e.printStackTrace();
}
@@ -123,7 +124,7 @@ public class Main extends Application
stage.showAndWait();
}
- catch (Exception e)
+ catch (IOException e)
{
e.printStackTrace();
}
@@ -156,7 +157,7 @@ public class Main extends Application
stage.showAndWait();
}
- catch (Exception e)
+ catch (IOException e)
{
e.printStackTrace();
}
@@ -191,7 +192,7 @@ public class Main extends Application
return controller.getProjekt();
}
- catch (Exception e)
+ catch (IOException e)
{
e.printStackTrace();
}
@@ -436,7 +437,7 @@ public class Main extends Application
updateOrganisation.setString(2, tmpOrg.getOldName());
updateOrganisation.execute();
}
- catch (Exception e)
+ catch (SQLException e)
{
e.printStackTrace();
}
@@ -517,7 +518,7 @@ public class Main extends Application
updateAnsprechpartner.execute();
}
- catch (Exception e)
+ catch (SQLException e)
{
e.printStackTrace();
}
@@ -601,7 +602,7 @@ public class Main extends Application
updateStudent.execute();
}
- catch (Exception e)
+ catch (SQLException e)
{
e.printStackTrace();
}
@@ -720,7 +721,7 @@ public class Main extends Application
updateProjekt.execute();
}
- catch (Exception e)
+ catch (SQLException e)
{
e.printStackTrace();
}