[ 
https://issues.apache.org/jira/browse/CXF-3762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091390#comment-13091390
 ] 

aaron pieper commented on CXF-3762:
-----------------------------------

I already use the wsdl:fault element appropriately to define a customized set 
of faults for each of my web services. As far as I understand, that doesn't 
address anything about how these various XML faults would be serialized into 
Java objects, or what the class names would be, or which classes they would 
extend; that's all handled by JAXB and (sometimes) by the configuration of the 
CXF wsdl2java tool.

I'll have to look over the JAX-WS spec tomorrow; I'll admit that I don't 
understand your concern about handling these 4 exceptions. You're describing 
exceptions such as "javax.xml.ws.WebServiceException", right? Those kinds of 
exceptions aren't generated by CXF, so why would they be affected by this 
patch? This patch only affects how new exception classes are generated for 
customized faults. It wouldn't affect exceptions which are pre-packaged with 
the JRE (unless I'm misunderstanding something.)

> Add an -exceptionSuper flag, allowing wsdl2java to generate exceptions which 
> extend from java.lang.RuntimeException
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3762
>                 URL: https://issues.apache.org/jira/browse/CXF-3762
>             Project: CXF
>          Issue Type: New Feature
>          Components: Tooling
>    Affects Versions: 2.4.2
>            Reporter: aaron pieper
>              Labels: jaxb, wsdl2java
>         Attachments: patch.txt
>
>
> When using CXF's wsdl2java tool, generated exceptions always extend 
> java.lang.Exception. It would be nice if exceptions could optionally extend 
> java.lang.RuntimeException instead. This could be accomplished by adding a 
> flag like -exceptionSuper=.... on the wsdl2java tool, which would allow us to 
>  specify our own superclass.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to