jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1860517 - /jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java
Date Sun, 02 Jun 2019 12:34:22 GMT
Author: pmouawad
Date: Sun Jun  2 12:34:22 2019
New Revision: 1860517

URL: http://svn.apache.org/viewvc?rev=1860517&view=rev
Log:
Fix SONAR error on exception handling

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java?rev=1860517&r1=1860516&r2=1860517&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java Sun Jun
 2 12:34:22 2019
@@ -68,7 +68,7 @@ public class XPath2Assertion extends Abs
         try {
             XPathUtil.computeAssertionResultUsingSaxon(result, responseData, getXPathString(),
                     getNamespaces(),isNegated());
-        } catch (SaxonApiException e) {
+        } catch (SaxonApiException e) { // NOSONAR We handle exception within result failur
message
             result.setError(true);
             result.setFailureMessage("SaxonApiException occured computing assertion with
XPath:" + getXPathString() + ", error:" + e.getMessage());
             return result;



Mime
View raw message