cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: how to indicate fatal exception in a transformer?
Date Mon, 25 Jun 2001 20:40:51 GMT
On Mon, 25 Jun 2001, giacomo wrote:

> > how do i indicate that a fatal exception has occured in a transformer,
> > specifically, in one of the SAX event handler methods? i would think that
> > i'd throw a ProcessingException, but that's not allowed per the method
> > signature of XMLProducer interface. when i throw a SAXException, i don't
> > end up with an internal server error being tossed to the client, the
> > request just hangs. what's the best practice for this situation?
> Yes, the Exception handling of C2 isn't complete. Have you tried the
> Avalon CascadingRuntimeException?

no, sure haven't. will it divert the pipeline to the error section? based
on what i've seen, only ProcessingExceptions will do that, but i could
easily be wrong.

just as a general suggestion - a little HOWTO on writing cocoon components
would be a grand thing to add to the docs. what interfaces you should
implement (and when and why), what exceptions you should toss (and when
and why), etc.

- donald

To unsubscribe, e-mail:
For additional commands, email:

View raw message