jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1379862 - /jmeter/trunk/src/jorphan/org/apache/commons/jexl/bsf/JexlEngine.java
Date Sat, 01 Sep 2012 21:14:38 GMT
Author: pmouawad
Date: Sat Sep  1 21:14:38 2012
New Revision: 1379862

URL: http://svn.apache.org/viewvc?rev=1379862&view=rev
Log:
Add stacktrace in exception

Modified:
    jmeter/trunk/src/jorphan/org/apache/commons/jexl/bsf/JexlEngine.java

Modified: jmeter/trunk/src/jorphan/org/apache/commons/jexl/bsf/JexlEngine.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/commons/jexl/bsf/JexlEngine.java?rev=1379862&r1=1379861&r2=1379862&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/commons/jexl/bsf/JexlEngine.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/commons/jexl/bsf/JexlEngine.java Sat Sep  1 21:14:38
2012
@@ -97,8 +97,7 @@ public class JexlEngine extends BSFEngin
             }
             return jExpr.execute(jc);
         } catch (Exception e) {
-            // TODO Better messages
-            throw new BSFException(e.getMessage());
+            throw new BSFException(BSFException.REASON_OTHER_ERROR, e.getMessage(), e);
         }
     }
 
@@ -120,7 +119,7 @@ public class JexlEngine extends BSFEngin
             }
             jExpr.execute(jc);
         } catch (Exception e) {
-            throw new BSFException(e.getMessage());
+            throw new BSFException(BSFException.REASON_OTHER_ERROR, e.getMessage(), e);
         }
     }
 
@@ -142,7 +141,7 @@ public class JexlEngine extends BSFEngin
             Method m = object.getClass().getMethod(name, types);
             return m.invoke(object, args);
         } catch (Exception e) {
-            throw new BSFException(e.getMessage());
+            throw new BSFException(BSFException.REASON_OTHER_ERROR, e.getMessage(), e);
         }
     }
 



Mime
View raw message