sboag       01/01/11 23:29:12

  Modified:    java/src/org/apache/xalan/extensions ExtensionsTable.java
  Log:
  Just do a normal throw from extFunction if callFunction throws an
  exception.  This will be caught by XPath and passed to the
  error listener, with the SourceLocator set.
  
  Revision  Changes    Path
  1.15      +5 -19     
xml-xalan/java/src/org/apache/xalan/extensions/ExtensionsTable.java
  
  Index: ExtensionsTable.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/extensions/ExtensionsTable.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ExtensionsTable.java      2001/01/07 03:47:08     1.14
  +++ ExtensionsTable.java      2001/01/12 07:29:11     1.15
  @@ -253,27 +253,13 @@
             result = extNS.callFunction(funcName, argVec, methodKey,
                                         exprContext);
           }
  +        catch (javax.xml.transform.TransformerException e)
  +        {
  +          throw e;
  +        }
           catch (Exception e)
           {
  -          e.printStackTrace();
  -
  -          // throw new XPathProcessorException ("Extension function '" + ns +
  -          //  ":" + funcName +
  -          //  "', threw exception: " + e, e);
  -          String msg = e.getMessage();
  -
  -          if (null != msg)
  -          {
  -            if (msg.startsWith("Stopping after fatal error:"))
  -            {
  -              msg = msg.substring("Stopping after fatal error:".length());
  -            }
  -
  -            // System.out.println("Call to extension function failed: "+msg);
  -            result = new XNull();
  -
  -            // throw new javax.xml.transform.TransformerException(e);
  -          }
  +          throw new javax.xml.transform.TransformerException(e);
           }
         }
         else
  
  
  

Reply via email to