Skip to content

Commit

Permalink
Improve error reporting by using a CascadingIOException instead of an…
Browse files Browse the repository at this point in the history
… ordinary IOException. Due to Alexander Klimetschek.

git-svn-id: https://svn.apache.org/repos/asf/cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl@468669 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Par Daniel Fagerstrohm committed Oct 28, 2006
1 parent 49b538f commit 205fd81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/apache/cocoon/blocks/BlockConnection.java
Expand Up @@ -30,6 +30,7 @@
import javax.servlet.ServletException;

import org.apache.avalon.framework.logger.Logger;
import org.apache.cocoon.CascadingIOException;
import org.apache.cocoon.blocks.util.BlockCallHttpServletRequest;
import org.apache.cocoon.blocks.util.BlockCallHttpServletResponse;

Expand Down Expand Up @@ -118,7 +119,7 @@ public InputStream getInputStream() throws IOException {

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

Expand Down

0 comments on commit 205fd81

Please sign in to comment.