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

Make exception throwing as flexible in XML as in Java DSL

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      When throwing exceptions there are more options in the java DSL (one has full control) than in the XML where you can only reference an exception instance.

      It would be useful to be able to construct the exception and throw it, so that one could add messages to it - preferably like:

      throwException class="someEx" message="someProblem ${body} ${in.header.someHeader}
      

      Reference: http://camel.apache.org/exception-clause.html

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davidkarlsen@gmail.com David J. M. Karlsen
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: