You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/07/20 09:08:03 UTC
(tomcat) branch 11.0.x updated: Always call ExceptionUtils.handleThrowable first in a catch block
This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 538e212bb9 Always call ExceptionUtils.handleThrowable first in a catch block
538e212bb9 is described below
commit 538e212bb9d6d7eb6feade998a536d2910882acf
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Jul 20 10:07:49 2026 +0100
Always call ExceptionUtils.handleThrowable first in a catch block
---
java/org/apache/catalina/users/DataSourceUserDatabase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/users/DataSourceUserDatabase.java b/java/org/apache/catalina/users/DataSourceUserDatabase.java
index 1b2960eadb..9b3867b38f 100644
--- a/java/org/apache/catalina/users/DataSourceUserDatabase.java
+++ b/java/org/apache/catalina/users/DataSourceUserDatabase.java
@@ -1250,8 +1250,8 @@ public class DataSourceUserDatabase extends SparseUserDatabase {
dbConnection.commit();
success = true;
} catch (Throwable t) {
- log.error(sm.getString("dataSourceUserDatabase.exception"), t);
ExceptionUtils.handleThrowable(t);
+ log.error(sm.getString("dataSourceUserDatabase.exception"), t);
// Some exception occurred so rollback everything
try {
dbConnection.rollback();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org