From: Aron Roberts Date: Sun, 7 Apr 2013 19:26:55 +0000 (-0700) Subject: CSPACE-5943: Trivial changes to error log statements. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=a0130dc7f6d65869c5a9f8b6df1ea1d3ebb3b870;p=tmp%2Fjakarta-migration.git CSPACE-5943: Trivial changes to error log statements. --- 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 7ea50b054..60ee9fca9 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 @@ -194,7 +194,7 @@ public class JDBCTools { logger.debug("SQL Exception: " + sqle.getLocalizedMessage()); tempException = tempException.getNextException(); } - throw new RuntimeException("SQL problem in executeQuery: ", sqle); + throw new RuntimeException("SQL Exception in executeQuery: ", sqle); } finally { try { if (stmt != null) { @@ -233,7 +233,7 @@ public class JDBCTools { logger.debug("SQL Exception: " + sqle.getLocalizedMessage()); tempException = tempException.getNextException(); } - throw new RuntimeException("SQL problem in executePreparedQuery: ", sqle); + throw new RuntimeException("SQL Exception in executePreparedQuery: ", sqle); } finally { try { if (ps != null) { @@ -286,7 +286,7 @@ public class JDBCTools { logger.debug("SQL Exception: " + sqle.getLocalizedMessage()); tempException = tempException.getNextException(); } - throw new RuntimeException("SQL problem in executePreparedQuery: ", sqle); + throw new RuntimeException("SQL Exception in executePreparedQueries: ", sqle); } finally { try { if (ps != null) { @@ -299,7 +299,7 @@ public class JDBCTools { conn.close(); } } catch (SQLException sqle) { - logger.debug("SQL Exception closing statement/connection in executeQuery: " + sqle.getLocalizedMessage()); + logger.debug("SQL Exception closing statement/connection in executePreparedQueries: " + sqle.getLocalizedMessage()); return null; } } @@ -329,7 +329,7 @@ public class JDBCTools { logger.debug("SQL Exception: " + msg); tempException = tempException.getNextException(); } - throw new RuntimeException("SQL problem in executeUpdate: " + msg, sqle); + throw new RuntimeException("SQL Exception in executeUpdate: " + msg, sqle); } finally { try { if (stmt != null) {