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/06/23 14:53:38 UTC
[camel] 05/17: (chores) camel-ftp: do not catch Throwable
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 e6270f7a997b007902b40cab049f40c11c31d63e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 14:41:25 2023 +0200
(chores) camel-ftp: do not catch Throwable
---
.../component/file/remote/RemoteFilePollingConsumerPollStrategy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFilePollingConsumerPollStrategy.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFilePollingConsumerPollStrategy.java
index c2e62bdfbcf..ba18b2b886b 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFilePollingConsumerPollStrategy.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFilePollingConsumerPollStrategy.java
@@ -40,7 +40,7 @@ public class RemoteFilePollingConsumerPollStrategy extends DefaultPollingConsume
}
try {
rfc.forceDisconnect();
- } catch (Throwable t) {
+ } catch (Exception t) {
// ignore the exception
if (log.isDebugEnabled()) {
log.debug("Error occurred during force disconnecting from: {}. This exception will be ignored.",