cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java esql.xsl
Date Mon, 26 Mar 2001 20:26:01 GMT
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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message