You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/08/17 10:55:34 UTC
[camel] branch main updated: CAMEL-19748: fixed catching Throwables in camel-main (#11138)
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
The following commit(s) were added to refs/heads/main by this push:
new a76b9f90373 CAMEL-19748: fixed catching Throwables in camel-main (#11138)
a76b9f90373 is described below
commit a76b9f903732abe3dd8b20a161cd554e804197d8
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Thu Aug 17 12:55:25 2023 +0200
CAMEL-19748: fixed catching Throwables in camel-main (#11138)
---
.../src/main/java/org/apache/camel/main/SimpleMainShutdownStrategy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/camel-main/src/main/java/org/apache/camel/main/SimpleMainShutdownStrategy.java b/core/camel-main/src/main/java/org/apache/camel/main/SimpleMainShutdownStrategy.java
index 0b9ed328d6b..61a819d9b14 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/SimpleMainShutdownStrategy.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/SimpleMainShutdownStrategy.java
@@ -62,7 +62,7 @@ public class SimpleMainShutdownStrategy implements MainShutdownStrategy {
try {
LOG.trace("ShutdownEventListener: {}", l);
l.onShutdown();
- } catch (Throwable e) {
+ } catch (Exception e) {
// ignore as we must continue
LOG.debug("Error during ShutdownEventListener: {}. This exception is ignored.", l, e);
}