From a0130dc7f6d65869c5a9f8b6df1ea1d3ebb3b870 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Sun, 7 Apr 2013 12:26:55 -0700 Subject: [PATCH] CSPACE-5943: Trivial changes to error log statements. --- .../services/common/storage/JDBCTools.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) { -- 2.47.3