bloritsch    01/03/26 13:34:54

  Modified:    src/org/apache/cocoon/processor/xsp/library/sql esql.xsl
  Log:
  Add additional info on exceptions
  
  Revision  Changes    Path
  1.75      +3 -3      
xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl
  
  Index: esql.xsl
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- esql.xsl  2001/03/26 20:29:15     1.74
  +++ esql.xsl  2001/03/26 21:34:53     1.75
  @@ -1,5 +1,5 @@
   <?xml version="1.0"?>
  -<!-- $Id: esql.xsl,v 1.74 2001/03/26 20:29:15 bloritsch Exp $-->
  +<!-- $Id: esql.xsl,v 1.75 2001/03/26 21:34:53 bloritsch Exp $-->
   <!--
   
    ============================================================================
  @@ -478,13 +478,13 @@
                   </xsl:otherwise>
                 </xsl:choose>
               } catch (SQLException _esql_exception_<xsl:value-of 
select="generate-id(.)"/>) {
  -              throw new RuntimeException("Error setting parameter on 
statement: "+_esql_query.query);
  +              throw new RuntimeException("Error setting parameter on 
statement: "+_esql_query.query+": "+_esql_exception_<xsl:value-of 
select="generate-id(.)"/>);
               }
             </xsl:for-each>
             try {
               _esql_query.results = _esql_query.prepared_statement.execute();
             } catch (SQLException _esql_exception_<xsl:value-of 
select="generate-id(.)"/>) {
  -            throw new RuntimeException("Error executed prepared statement: 
"+_esql_query.query);
  +            throw new RuntimeException("Error executed prepared statement: 
"+_esql_query.query+": "+_esql_exception_<xsl:value-of 
select="generate-id(.)"/>);
             }
           </xsl:when>
           <!-- this is a normal query -->
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to