geirm       2004/02/19 10:53:43

  Modified:    src/java/org/apache/velocity/runtime/parser/node
                        ASTMethod.java
  Log:
  added template, line and col from where a MIE is thrown
  
  Revision  Changes    Path
  1.25      +8 -4      
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.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- ASTMethod.java    4 May 2003 17:24:30 -0000       1.24
  +++ ASTMethod.java    19 Feb 2004 18:53:43 -0000      1.25
  @@ -269,8 +269,10 @@
                   {
                       throw new MethodInvocationException( 
                           "Invocation of method '" 
  -                        + methodName + "' in  " + o.getClass() 
  -                        + " threw exception " 
  +                        + methodName + "' in  " + o.getClass()
  +                        + " in template " + context.getCurrentTemplateName()
  +                        + " at line=" + this.getLine() + " column=" + 
this.getColumn()
  +                        + " threw exception "
                           + e.getClass() + " : " + e.getMessage(), 
                           e, methodName );
                   }
  @@ -283,7 +285,9 @@
   
                   throw new MethodInvocationException( 
                   "Invocation of method '" 
  -                + methodName + "' in  " + o.getClass() 
  +                + methodName + "' in  " + o.getClass()
  +                + " in template " + context.getCurrentTemplateName()
  +                + " at line=" + this.getLine() + " column=" + this.getColumn()
                   + " threw exception " 
                   + ite.getTargetException().getClass() + " : "
                   + ite.getTargetException().getMessage(), 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to