This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 680cad9d2e74c80dac53119dd4ea17ee5d78ba11
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Fri Jun 23 14:51:18 2023 +0200

    (chores) camel-reactive-executor-tomcat: do not catch Throwable
---
 .../org/apache/camel/reactive/tomcat/TomcatReactiveExecutor.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/components/camel-reactive-executor-tomcat/src/main/java/org/apache/camel/reactive/tomcat/TomcatReactiveExecutor.java
 
b/components/camel-reactive-executor-tomcat/src/main/java/org/apache/camel/reactive/tomcat/TomcatReactiveExecutor.java
index e7407c665c6..e4c46788564 100644
--- 
a/components/camel-reactive-executor-tomcat/src/main/java/org/apache/camel/reactive/tomcat/TomcatReactiveExecutor.java
+++ 
b/components/camel-reactive-executor-tomcat/src/main/java/org/apache/camel/reactive/tomcat/TomcatReactiveExecutor.java
@@ -247,9 +247,9 @@ public class TomcatReactiveExecutor extends ServiceSupport 
implements ReactiveEx
                                 LOG.trace("Worker #{} running: {}", number, 
polled);
                             }
                             polled.run();
-                        } catch (Throwable t) {
+                        } catch (Exception e) {
                             LOG.warn("Error executing reactive work due to {}. 
This exception is ignored.",
-                                    t.getMessage(), t);
+                                    e.getMessage(), e);
                         }
                     }
                 } finally {
@@ -278,9 +278,9 @@ public class TomcatReactiveExecutor extends ServiceSupport 
implements ReactiveEx
                     LOG.trace("Running: {}", polled);
                 }
                 polled.run();
-            } catch (Throwable t) {
+            } catch (Exception e) {
                 // should not happen
-                LOG.warn("Error executing reactive work due to {}. This 
exception is ignored.", t.getMessage(), t);
+                LOG.warn("Error executing reactive work due to {}. This 
exception is ignored.", e.getMessage(), e);
             }
             return true;
         }

Reply via email to