db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1524026 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java
Date Tue, 17 Sep 2013 12:56:20 GMT
Author: rhillegas
Date: Tue Sep 17 12:56:19 2013
New Revision: 1524026

URL: http://svn.apache.org/r1524026
Log:
DERBY-6346: Dump wrapped Java exceptions to derby.log; tests passed cleanly on derby-6346-01-aa-logJavaException.diff.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java?rev=1524026&r1=1524025&r2=1524026&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/Util.java Tue Sep 17 12:56:19
2013
@@ -328,9 +328,13 @@ public abstract class Util  {
                 next = javaException(cause);
             }
         }
-		return newEmbedSQLException(SQLState.JAVA_EXCEPTION,
+		SQLException    result = newEmbedSQLException(SQLState.JAVA_EXCEPTION,
                 new Object[] {name, msg}, next,
                 ExceptionSeverity.NO_APPLICABLE_SEVERITY, t);
+
+    	if ( result.getErrorCode() >= logSeverityLevel ) { logSQLException( result ); }
+        
+        return result;
 	}
 
 



Mime
View raw message