You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Brant <pm...@gmx.at> on 2003/10/31 19:32:15 UTC

Handling non-Exception Throwables with handle-errors

Hi all,

I've noticed that any Throwable that is not an Exception is not handled with
the error handler defined in the handle-errors sitemap fragment.  The result
is a blank page with no indication anything went wrong (although the
stacktrace does show up in Tomcat's log).

It looks like the catch(Exception e) in PipelineNode.invoke() could be
changed to catch(Throwable e)?

As an aside, I'm a new Cocoon user who developed some XSLT extensions to
Struts (sort of a SAX-ified version of stxx) - not open source unfortunately. 
We've used it with good success on several projects, but it was proving
unsuitable for some harder problems so I took a look at Cocoon.  I'm completely
blown away.  The Source interface along is to die for.  A huge thanks to the
people who have contributed the obviously immense amount of effort that has gone
into it.

Peter

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Handling non-Exception Throwables with handle-errors

Posted by Bruno Dumon <br...@outerthought.org>.
On Fri, 2003-10-31 at 19:32, Peter Brant wrote:
> Hi all,
> 
> I've noticed that any Throwable that is not an Exception is not handled with
> the error handler defined in the handle-errors sitemap fragment.  The result
> is a blank page with no indication anything went wrong (although the
> stacktrace does show up in Tomcat's log).

We had some discussion about this some time ago, but it didn't result in
anything yet. See the discussion over here:

http://marc.theaimsgroup.com/?t=105239721700006&r=1&w=2

> 
> It looks like the catch(Exception e) in PipelineNode.invoke() could be
> changed to catch(Throwable e)?
> 
> As an aside, I'm a new Cocoon user who developed some XSLT extensions to
> Struts (sort of a SAX-ified version of stxx) - not open source unfortunately. 
> We've used it with good success on several projects, but it was proving
> unsuitable for some harder problems so I took a look at Cocoon.  I'm completely
> blown away.  The Source interface along is to die for.  A huge thanks to the
> people who have contributed the obviously immense amount of effort that has gone
> into it.
> 
> Peter
-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org