Class MethodInvocationException

All Implemented Interfaces:
Serializable, ExtendedParseException

public class MethodInvocationException extends VelocityException implements ExtendedParseException
Application-level exception thrown when a reference method is invoked and an exception is thrown.
When this exception is thrown, a best effort will be made to have useful information in the exception's message. For complete information, consult the runtime log.
Version:
$Id$
Author:
Geir Magnusson Jr.
See Also:
  • Constructor Details

    • MethodInvocationException

      public MethodInvocationException(String message, Throwable e, String methodName, String templateName, int lineNumber, int columnNumber)
      CTOR - wraps the passed in exception for examination later
      Parameters:
      message -
      e - Throwable that we are wrapping
      methodName - name of method that threw the exception
      templateName - The name of the template where the exception occurred
      lineNumber - line number
      columnNumber - column number
    • MethodInvocationException

      public MethodInvocationException(String message, Throwable e, String[] stacktrace, String methodName, String templateName, int lineNumber, int columnNumber)
      CTOR - wraps the passed in exception for examination later
      Parameters:
      message -
      e - Throwable that we are wrapping
      stacktrace - VTL stacktrace
      methodName - name of method that threw the exception
      templateName - The name of the template where the exception occurred
      lineNumber - line number
      columnNumber - column number
  • Method Details