cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <>
Subject Improving display of exceptions in blocks framework - ResourceReader
Date Fri, 27 Oct 2006 12:39:43 GMT

I am trying to improve the exception handling for the new blocks. The 
problem is that you don't see the exceptions thrown inside a called 
blockservlet. Apart from changing the BlockConnection to throw a 
CascadingIOException, the ResourceReader must throw any IOException 
caught in generate() (line 349). This is currently not done because it 
looks like there are cases, where a failed generate should be silently 
ignored. The debug message says "Received an IOException, assuming 
client severed connection on purpose".

Is this true? Or would it be no harm to throw the exception at that 
place to trigger the standard "Problem in creating the Request" page?


Alexander Klimetschek

View raw message