[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-dev
Subject: cvs commit: jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node ASTMethod.java Propert
From: geirm () apache ! org
Date: 2001-07-18 10:42:22
[Download RAW message or body]
geirm 01/07/18 03:42:22
Modified: src/java/org/apache/velocity/runtime/parser/node
ASTMethod.java PropertyExecutor.java
Log:
Enhancement to MIE message suggested by Conor MacNeill
<conor@cortexebusiness.com.au>
Revision Changes Path
1.18 +5 -3 \
jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/ASTMethod.java
Index: ASTMethod.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/ASTMethod.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ASTMethod.java 2001/05/20 19:50:05 1.17
+++ ASTMethod.java 2001/07/18 10:42:22 1.18
@@ -84,7 +84,7 @@
*
* @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
* @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
- * @version $Id: ASTMethod.java,v 1.17 2001/05/20 19:50:05 geirm Exp $
+ * @version $Id: ASTMethod.java,v 1.18 2001/07/18 10:42:22 geirm Exp $
*/
public class ASTMethod extends SimpleNode
{
@@ -295,7 +295,8 @@
"Invocation of method '"
+ methodName + "' in " + o.getClass()
+ " threw exception "
- + e.getClass(), e, methodName );
+ + e.getClass() + " : " + e.getMessage(),
+ e, methodName );
}
}
else
@@ -308,7 +309,8 @@
"Invocation of method '"
+ methodName + "' in " + o.getClass()
+ " threw exception "
- + ite.getTargetException().getClass(),
+ + ite.getTargetException().getClass() + " : "
+ + ite.getTargetException().getMessage(),
ite.getTargetException(), methodName );
}
}
1.9 +4 -2 \
jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java
Index: PropertyExecutor.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- PropertyExecutor.java 2001/05/20 19:50:07 1.8
+++ PropertyExecutor.java 2001/07/18 10:42:22 1.9
@@ -156,7 +156,8 @@
"Invocation of method '" + methodUsed + "'"
+ " in " + o.getClass()
+ " threw exception "
- + ite.getTargetException().getClass(),
+ + ite.getTargetException().getClass() + " : "
+ + ite.getTargetException().getMessage(),
ite.getTargetException(), methodUsed );
}
}
@@ -170,7 +171,8 @@
"Invocation of method '" + methodUsed + "'"
+ " in " + o.getClass()
+ " threw exception "
- + ite.getTargetException().getClass(),
+ + ite.getTargetException().getClass() + " : "
+ + ite.getTargetException().getMessage(),
ite.getTargetException(), methodUsed );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic