You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Moshe Elisha (Jira)" <ji...@apache.org> on 2023/01/10 14:47:00 UTC
[jira] [Created] (CAMEL-18874) camel-file - When possible, pass the exchange to the exception handler
Moshe Elisha created CAMEL-18874:
------------------------------------
Summary: camel-file - When possible, pass the exchange to the exception handler
Key: CAMEL-18874
URL: https://issues.apache.org/jira/browse/CAMEL-18874
Project: Camel
Issue Type: Improvement
Components: camel-file, camel-ftp, camel-sftp
Affects Versions: 3.19.0
Reporter: Moshe Elisha
Several places use the
{{org.apache.camel.spi.ExceptionHandler#handleException(java.lang.String, java.lang.Throwable)}}
instead of
{{org.apache.camel.spi.ExceptionHandler#handleException(java.lang.String, org.apache.camel.Exchange, java.lang.Throwable)}}
even when the exchange is available in scope.
One example for that is org.apache.camel.component.file.GenericFileConsumer#processExchange
The exchange is sometimes needed for additional information. For example, if a download of a file from an SFTP server fails, the exchange will hold the file details for logging purposes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)