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 48a659b5e959f59dd7d1d2d188f956b3f98a8a1b
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Fri Jun 23 14:39:31 2023 +0200

    (chores) camel-etcd3: do not catch Throwable
---
 .../etcd3/processor/aggregate/Etcd3AggregationRepository.java         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-etcd3/src/main/java/org/apache/camel/component/etcd3/processor/aggregate/Etcd3AggregationRepository.java
 
b/components/camel-etcd3/src/main/java/org/apache/camel/component/etcd3/processor/aggregate/Etcd3AggregationRepository.java
index aad0e2fcd10..48de01765fa 100644
--- 
a/components/camel-etcd3/src/main/java/org/apache/camel/component/etcd3/processor/aggregate/Etcd3AggregationRepository.java
+++ 
b/components/camel-etcd3/src/main/java/org/apache/camel/component/etcd3/processor/aggregate/Etcd3AggregationRepository.java
@@ -417,8 +417,8 @@ public class Etcd3AggregationRepository extends 
ServiceSupport
                     LOG.trace(
                             "Put an exchange with ID {} for key {} into a 
recoverable storage in a thread-safe manner.",
                             exchange.getExchangeId(), key);
-                } catch (Throwable throwable) {
-                    throw new RuntimeCamelException(throwable.getMessage(), 
throwable);
+                } catch (Exception exception) {
+                    throw new RuntimeCamelException(exception.getMessage(), 
exception);
                 }
             } else {
                 CompletableFuture<DeleteResponse> completableDeleteResponse = 
kvClient

Reply via email to