-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Stevens 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.

Ok... I ended up with creating my own custom tag handler. It was easier
than I thought it would be.


- -- 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/ojlV1kCcj9H6piwRAiu6AJ4qKUUZuXv2gd7D56N2kZVo9pmLcQCcD+xt
wOadMC9lAeLHFIbpvHl2e48=
=ObFN
-----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

Reply via email to