From 98f693f82ddd565844c676dc84bbc799bfc94d12 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Mon, 25 Mar 2013 20:29:08 -0700 Subject: [PATCH] CSPACE-5943: Added missing 'catch' block. --- .../collectionspace/services/common/storage/JDBCTools.java | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- 2.47.3