cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: svn commit: r468669 - /cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/BlockConnection.java
Date Sat, 28 Oct 2006 10:36:27 GMT
On 28.10.2006 12:16, danielf@apache.org wrote:

> URL: http://svn.apache.org/viewvc?view=rev&rev=468669
> Log:
> Improve error reporting by using a CascadingIOException instead of an ordinary IOException.
Due to Alexander Klimetschek.
> 
> Modified:
>     cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/BlockConnection.java

>              
>              return new ByteArrayInputStream(out);
>          } catch (ServletException e) {
> -            throw new IOException("BlockConnection " + e.getMessage());
> +            throw new CascadingIOException("BlockConnection " + e.getMessage());

But I guess it has to be

   new CascadingIOException("BlockConnection " + e.getMessage(), e);

to be of real advantage.

Jörg

Mime
View raw message