2 Replies Latest reply on Jun 14, 2005 3:54 AM by thomas.diesler

    Throw custom exception in JBOSSWS

    mz02

      Has anyone tried to throw a custom exception in JBOSSWS? I am having problem with this and I posted a question on http://www.jboss.org/index.html?module=bb&op=viewtopic&t=64120
      but has no one to answer the question. Can anyone confirm if this a JBOSS bug or I just missed something?

      Thanks,
      Mi

        • 1. Re: Throw custom exception in JBOSSWS
          jason.greene

          Custom exceptions have been supported, and are working in jboss since version 4.0.1.

          I answered the specific problem in your original post.

          -Jason

          • 2. Re: Throw custom exception in JBOSSWS
            thomas.diesler

            Have a look at

            $ ant -Dtest=org.jboss.test.webservice.exception.ExceptionTestCase one-test
            
            one-test:
             [junit] Running org.jboss.test.webservice.exception.ExceptionTestCase
             [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 9.016 sec
            


            That and the wiki should demonstrate how to use custom exceptions. If anything is unclear let us know.