commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r793429 - /commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/jexl/JexlEvaluator.java
Date Sun, 12 Jul 2009 23:11:14 GMT
Author: rahul
Date: Sun Jul 12 23:11:14 2009
New Revision: 793429

URL: http://svn.apache.org/viewvc?rev=793429&view=rev
Log:
Improve exception messages.

Modified:
    commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/jexl/JexlEvaluator.java

Modified: commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/jexl/JexlEvaluator.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/jexl/JexlEvaluator.java?rev=793429&r1=793428&r2=793429&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/jexl/JexlEvaluator.java
(original)
+++ commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/env/jexl/JexlEvaluator.java
Sun Jul 12 23:11:14 2009
@@ -112,8 +112,8 @@
                 replaceAll("_builtin.data(_ALL_NAMESPACES, ");
             exp = ExpressionFactory.createExpression(evalExpr);
             return (Boolean) exp.evaluate(getEffectiveContext(jexlCtx));
-        } catch (Exception e) {
-            throw new SCXMLExpressionException("eval('" + expr + "'):"
+        } catch (Exception e) {e.printStackTrace();
+            throw new SCXMLExpressionException("evalCond('" + expr + "'):"
                 + e.getMessage(), e);
         }
     }
@@ -143,7 +143,7 @@
             exp = ExpressionFactory.createExpression(evalExpr);
             return (Node) exp.evaluate(getEffectiveContext(jexlCtx));
         } catch (Exception e) {
-            throw new SCXMLExpressionException("eval('" + expr + "'):"
+            throw new SCXMLExpressionException("evalLocation('" + expr + "'):"
                 + e.getMessage(), e);
         }
     }



Mime
View raw message