On Thu, 2003-10-30 at 16:51, Vetle Roeim wrote: > However; I would like to generate specific code in methods in a session > bean, based on what exceptions it throws. For an example; if a method > throws ZotException, I would perhaps like to set a state in another > object, if it throws another exception, some other state should be set, > and so on... > > I have looked in the template documentation for some way of testing what > exceptions a method throws, but I haven't been able to find anything.. > Is it possible to do what I want? > > I guess what I would like to have is something like <XDtMethod:ifThrows > name="ZotException"> ... If it exists.
I don't believe there is anything like this at the moment. You could always a custom tag handler to do it. Or, if you'd like it adding to the existing MethodTagsHandler, raise an enhancement request in JIRA. Andrew. > > > TIA, > - -- > Vetle Roeim ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
