-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi. I'm using XDoclet to generate session beans, and I'm attempting to write a template to generate some custom code. I've managed to create a template, and XDoclet uses that template when it generates code.
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.
TIA, - -- Vetle Roeim Lead Developer, Enonic AS - <URL:http://enonic.com> Mobile: +47 40 40 14 37, Office: +47 22 00 85 50, Fax: +47 22 00 85 51 PGP Public Key: http://open.enonic.com/pgp/vro-pubkey.txt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQE/oUGN1kCcj9H6piwRAuqUAJ9/vbUJ9DKl3KQYbIYlbr1nX4xJ/wCgvFVg 2RAwOzFSwE/10sHCJ8uOkbs= =VbEn -----END PGP SIGNATURE-----
------------------------------------------------------- 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
