[
https://issues.apache.org/jira/browse/CAMEL-18874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-18874:
--------------------------------
Fix Version/s: 3.21.0
> 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
> Priority: Major
> Fix For: 3.21.0
>
>
> 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)