You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2012/09/04 13:56:52 UTC
svn commit: r1380579 - in /jmeter/trunk/src:
functions/org/apache/jmeter/functions/FileToString.java
jorphan/org/apache/jorphan/util/JMeterStopThreadException.java
Author: pmouawad
Date: Tue Sep 4 11:56:51 2012
New Revision: 1380579
URL: http://svn.apache.org/viewvc?rev=1380579&view=rev
Log:
Cascade exceptions
Modified:
jmeter/trunk/src/functions/org/apache/jmeter/functions/FileToString.java
jmeter/trunk/src/jorphan/org/apache/jorphan/util/JMeterStopThreadException.java
Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/FileToString.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/FileToString.java?rev=1380579&r1=1380578&r2=1380579&view=diff
==============================================================================
--- jmeter/trunk/src/functions/org/apache/jmeter/functions/FileToString.java (original)
+++ jmeter/trunk/src/functions/org/apache/jmeter/functions/FileToString.java Tue Sep 4 11:56:51 2012
@@ -101,8 +101,8 @@ public class FileToString extends Abstra
try {
myValue = FileUtils.readFileToString(new File(fileName), encoding);
} catch (IOException e) {
- log.warn("Could not read file: "+fileName+" "+e.getMessage());
- throw new JMeterStopThreadException("End of sequence");
+ log.warn("Could not read file: "+fileName+" "+e.getMessage(), e);
+ throw new JMeterStopThreadException("End of sequence", e);
}
if (myName.length() > 0) {
Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/util/JMeterStopThreadException.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/util/JMeterStopThreadException.java?rev=1380579&r1=1380578&r2=1380579&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/util/JMeterStopThreadException.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/util/JMeterStopThreadException.java Tue Sep 4 11:56:51 2012
@@ -34,4 +34,12 @@ public class JMeterStopThreadException e
public JMeterStopThreadException(String s) {
super(s);
}
-}
+
+ public JMeterStopThreadException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public JMeterStopThreadException(Throwable cause) {
+ super(cause);
+ }
+}
\ No newline at end of file