bloritsch 01/03/26 12:26:01
Modified: src/org/apache/cocoon/components/language/markup/xsp/java
Tag: xml-cocoon2 esql.xsl
Log:
throw exceptions in AsciiStream stuff
Revision Changes Path
No revision
No revision
1.1.2.51 +5 -3
xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/esql.xsl
Index: esql.xsl
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/esql.xsl,v
retrieving revision 1.1.2.50
retrieving revision 1.1.2.51
diff -u -r1.1.2.50 -r1.1.2.51
--- esql.xsl 2001/03/21 18:51:11 1.1.2.50
+++ esql.xsl 2001/03/26 20:26:01 1.1.2.51
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<!-- $Id: esql.xsl,v 1.1.2.50 2001/03/21 18:51:11 bloritsch Exp $-->
+<!-- $Id: esql.xsl,v 1.1.2.51 2001/03/26 20:26:01 bloritsch Exp $-->
<!--
============================================================================
@@ -257,9 +257,11 @@
asciiStream.read(buffer);
asciiStream.close();
} catch (Exception e) {
- // ignore exception
+ throw new RuntimeException("Error getting clob data: " +
e.getMessage());
} finally {
- if (asciiStream != null) try {asciiStream.close();} catch
(Exception ase) {/*ignore*/}
+ if (asciiStream != null) try {asciiStream.close();} catch
(Exception ase) {
+ throw new RuntimeException("Error closing clob stream: " +
e.getMessage());
+ }
}
if (buffer == null) return "";
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]