You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/05/24 05:15:00 UTC

[jira] [Assigned] (CAMEL-18874) camel-file - When possible, pass the exchange to the exception handler

     [ https://issues.apache.org/jira/browse/CAMEL-18874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-18874:
-----------------------------------

    Assignee: Claus Ibsen

> 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
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.0-RC1, 4.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)