From: Aron Roberts Date: Tue, 26 Mar 2013 03:29:08 +0000 (-0700) Subject: CSPACE-5943: Added missing 'catch' block. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=98f693f82ddd565844c676dc84bbc799bfc94d12;p=tmp%2Fjakarta-migration.git CSPACE-5943: Added missing 'catch' block. --- diff --git a/services/common/src/main/java/org/collectionspace/services/common/storage/JDBCTools.java b/services/common/src/main/java/org/collectionspace/services/common/storage/JDBCTools.java index 09b662ee4..defa2d88e 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/storage/JDBCTools.java +++ b/services/common/src/main/java/org/collectionspace/services/common/storage/JDBCTools.java @@ -225,6 +225,13 @@ public class JDBCTools { crs.populate(resultSet); } return crs; + } catch (SQLException sqle) { + SQLException tempException = sqle; + while (null != tempException) { // SQLExceptions can be chained. Loop to log all. + logger.debug("SQL Exception: " + sqle.getLocalizedMessage()); + tempException = tempException.getNextException(); + } + throw new RuntimeException("SQL problem in executePreparedQuery: ", sqle); } finally { try { if (ps != null) {