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

@ExchangeException should support desired exception type denoted by parameter type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-M1
    • 2.0-M2
    • camel-core
    • None

    Description

      For instance

              public void handleException(Exchange exchange, @ExchangeException MyCustomException custom) {
      

      Where we have stated that @ExchangeException expects a MyCustomException to be mapped.
      Currently that did not work, you had to define the type as Exception.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: