Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18874

camel-file - When possible, pass the exchange to the exception handler

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            elishamoshe Moshe Elisha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment