开发者

How to make an "Exception" type class consumed by jaxb-xjc Throwable?

Is there a way to make a class generated by jaxb-xjc Throwable? I haven't found a way to do it in the binding file. If a schema defines an "Exception" t开发者_开发百科ype is there some other way to use it as such?

Google results seem to be drowned in other Exceptions and Throwables.


Clarification: Are you looking for a way to make a class generated by XJC extend Throwable?

If so I'm not aware of a standard means to do this, or of an existing XJC extension. The good news is that XJC is pluggable enough to create your own extension to do just this. Details can be found at the link below:

  • http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/jaxb/developPlugins.html
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜