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

OnException - In XML DSL should validate that one exception class has been specified, otherwise it should fail

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • camel-spring
    • None

    Description

      If you have

              <onException>
                  <handled>
                      <constant>true</constant>
                  </handled>
                  <to uri="mock:error"/>
              </onException>
      

      That should validate that an exception class has specified. As it should be.

              <onException>
                  <exception>java.lang.Exception</exception>
                  <handled>
                      <constant>true</constant>
                  </handled>
                  <to uri="mock:error"/>
              </onException>
      

      The Java DSL also requires at least 1 exception class defined.

      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: