You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sonny Sukumar <ah...@hotmail.com> on 2003/08/22 21:50:26 UTC
throwing non-ProcessingExceptions from XSPs
Hi guys,
Is it possible to declare additional exception types to be thrown from the
generate() method generated from an XSP? The generate code throws
SAXException, IOException, ProcessingException by default. I thought that,
since Cocoon 2.1 has improved support for handling various exception types
(aside from ProcessingException) at the end of pipelines, that maybe one
could maybe get away without wrapping exceptions in ProcessingException
instances in XSPs.
If it is possible, how can one declare a specific exception type to be
thrown using XSP syntax?
Thanks,
Sonny
_________________________________________________________________
Get MSN 8 and enjoy automatic e-mail virus protection.
http://join.msn.com/?page=features/virus
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: throwing non-ProcessingExceptions from XSPs
Posted by Geoff Howard <co...@leverageweb.com>.
Quoting Sonny Sukumar <ah...@hotmail.com>:
>
> Hi guys,
>
> Is it possible to declare additional exception types to be thrown from the
> generate() method generated from an XSP? The generate code throws
> SAXException, IOException, ProcessingException by default. I thought that,
> since Cocoon 2.1 has improved support for handling various exception types
> (aside from ProcessingException) at the end of pipelines, that maybe one
> could maybe get away without wrapping exceptions in ProcessingException
> instances in XSPs.
>
> If it is possible, how can one declare a specific exception type to be
> thrown using XSP syntax?
>
Yup. http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html
Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: throwing non-ProcessingExceptions from XSPs
Posted by Joerg Heinicke <jh...@virbus.de>.
What about extending ProcessingException?
Joerg
Sonny Sukumar wrote:
>
> Hi guys,
>
> Is it possible to declare additional exception types to be thrown from
> the generate() method generated from an XSP? The generate code throws
> SAXException, IOException, ProcessingException by default. I thought
> that, since Cocoon 2.1 has improved support for handling various
> exception types (aside from ProcessingException) at the end of
> pipelines, that maybe one could maybe get away without wrapping
> exceptions in ProcessingException instances in XSPs.
>
> If it is possible, how can one declare a specific exception type to be
> thrown using XSP syntax?
>
> Thanks,
>
> Sonny
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org