]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5943: Added missing 'catch' block.
authorAron Roberts <aron@socrates.berkeley.edu>
Tue, 26 Mar 2013 03:29:08 +0000 (20:29 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Tue, 26 Mar 2013 03:29:08 +0000 (20:29 -0700)
services/common/src/main/java/org/collectionspace/services/common/storage/JDBCTools.java

index 09b662ee44298cce7d6abd4b06db401b51059ef5..defa2d88e782a3faf7c54b9973323d6f98b542d3 100644 (file)
@@ -225,6 +225,13 @@ public class JDBCTools {
                 crs.populate(resultSet);\r
             }\r
             return crs;\r
+        } catch (SQLException sqle) {\r
+            SQLException tempException = sqle;\r
+            while (null != tempException) {       // SQLExceptions can be chained. Loop to log all.\r
+                logger.debug("SQL Exception: " + sqle.getLocalizedMessage());\r
+                tempException = tempException.getNextException();\r
+            }\r
+            throw new RuntimeException("SQL problem in executePreparedQuery: ", sqle);\r
         } finally {\r
             try {\r
                 if (ps != null) {\r