Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.19.0
-
None
-
Unknown
Description
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.