Joerg Heinicke skrev:
On 28.10.2006 12:16, [EMAIL PROTECTED] 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

Fixed, thanks.

/Daniel

Reply via email to