public class MethodInvocationException extends VelocityException implements ExtendedParseException
| Constructor and Description | 
|---|
| MethodInvocationException(String message,
                         Throwable e,
                         String[] stacktrace,
                         String methodName,
                         String templateName,
                         int lineNumber,
                         int columnNumber)CTOR - wraps the passed in exception for
  examination later | 
| MethodInvocationException(String message,
                         Throwable e,
                         String methodName,
                         String templateName,
                         int lineNumber,
                         int columnNumber)CTOR - wraps the passed in exception for
  examination later | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getColumnNumber()returns the column number where this exception occurred. | 
| int | getLineNumber()returns the line number where this exception occurred. | 
| String | getMessage() | 
| String | getMethodName()Returns the name of the method that threw the
  exception. | 
| String | getReferenceName()Retrieves the name of the reference that caused the
  exception. | 
| String | getTemplateName()returns the Template name where this exception occurred. | 
| void | setReferenceName(String ref)Sets the reference name that threw this exception. | 
getVtlStackTrace, getWrappedThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MethodInvocationException(String message, Throwable e, String methodName, String templateName, int lineNumber, int columnNumber)
message - e - Throwable that we are wrappingmethodName - name of method that threw the exceptiontemplateName - The name of the template where the exception occurredlineNumber - line numbercolumnNumber - column numberpublic MethodInvocationException(String message, Throwable e, String[] stacktrace, String methodName, String templateName, int lineNumber, int columnNumber)
message - e - Throwable that we are wrappingstacktrace - VTL stacktracemethodName - name of method that threw the exceptiontemplateName - The name of the template where the exception occurredlineNumber - line numbercolumnNumber - column numberpublic String getMethodName()
public void setReferenceName(String ref)
ref - name of referencepublic String getReferenceName()
public int getColumnNumber()
ExtendedParseExceptiongetColumnNumber in interface ExtendedParseExceptionExtendedParseException.getColumnNumber()public int getLineNumber()
ExtendedParseExceptiongetLineNumber in interface ExtendedParseExceptionExtendedParseException.getLineNumber()public String getTemplateName()
ExtendedParseExceptiongetTemplateName in interface ExtendedParseExceptionExtendedParseException.getTemplateName()public String getMessage()
getMessage in class ThrowableThrowable.getMessage()Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.