简体   繁体   中英

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" type 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:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM