You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/06/05 01:20:56 UTC

svn commit: r411621 - /jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/extractor/XPathExtractor.java

Author: sebb
Date: Sun Jun  4 16:20:55 2006
New Revision: 411621

URL: http://svn.apache.org/viewvc?rev=411621&view=rev
Log:
Fix Java 1.3 compilation error

Modified:
    jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/extractor/XPathExtractor.java

Modified: jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/extractor/XPathExtractor.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/extractor/XPathExtractor.java?rev=411621&r1=411620&r2=411621&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/extractor/XPathExtractor.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/components/org/apache/jmeter/extractor/XPathExtractor.java Sun Jun  4 16:20:55 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2005 The Apache Software Foundation.
+ * Copyright 2005-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -32,6 +32,7 @@
 import org.apache.jmeter.threads.JMeterVariables;
 import org.apache.jmeter.util.XPathUtil;
 import org.apache.jorphan.logging.LoggingManager;
+import org.apache.jorphan.util.JMeterError;
 import org.apache.log.Logger;
 import org.apache.xpath.XPathAPI;
 import org.w3c.dom.Document;
@@ -93,10 +94,10 @@
 			getValuesForXPath(d,getXPathQuery(),vars, refName);
 		}catch(IOException e){// Should not happen
 			log.error("error on "+XPATH_QUERY+"("+getXPathQuery()+")",e);
-			throw new RuntimeException(e);
+			throw new JMeterError(e);
 		} catch (ParserConfigurationException e) {// Should not happen
 			log.error("error on "+XPATH_QUERY+"("+getXPathQuery()+")",e);
-			throw new RuntimeException(e);
+			throw new JMeterError(e);
 		} catch (SAXException e) {// Can happen for bad input document
 			log.warn("error on "+XPATH_QUERY+"("+getXPathQuery()+")"+e.getLocalizedMessage());
 		} catch (TransformerException e) {// Can happen for incorrect XPath expression



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org