public class MethodInvocationException extends VelocityException implements ExtendedParseException
Modifier and Type | Field and Description |
---|---|
private int |
columnNumber |
private int |
lineNumber |
private java.lang.String |
methodName |
private java.lang.String |
referenceName |
private static long |
serialVersionUID
Version Id for serializable
|
private java.lang.String |
templateName |
Constructor and Description |
---|
MethodInvocationException(java.lang.String message,
java.lang.Throwable e,
java.lang.String[] stacktrace,
java.lang.String methodName,
java.lang.String templateName,
int lineNumber,
int columnNumber)
CTOR - wraps the passed in exception for
examination later
|
MethodInvocationException(java.lang.String message,
java.lang.Throwable e,
java.lang.String methodName,
java.lang.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.
|
java.lang.String |
getMessage() |
java.lang.String |
getMethodName()
Returns the name of the method that threw the
exception.
|
java.lang.String |
getReferenceName()
Retrieves the name of the reference that caused the
exception.
|
java.lang.String |
getTemplateName()
returns the Template name where this exception occurred.
|
void |
setReferenceName(java.lang.String ref)
Sets the reference name that threw this exception.
|
getVtlStackTrace, getWrappedThrowable
private static final long serialVersionUID
private java.lang.String referenceName
private final java.lang.String methodName
private final int lineNumber
private final int columnNumber
private final java.lang.String templateName
public MethodInvocationException(java.lang.String message, java.lang.Throwable e, java.lang.String methodName, java.lang.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(java.lang.String message, java.lang.Throwable e, java.lang.String[] stacktrace, java.lang.String methodName, java.lang.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 java.lang.String getMethodName()
public void setReferenceName(java.lang.String ref)
ref
- name of referencepublic java.lang.String getReferenceName()
public int getColumnNumber()
ExtendedParseException
getColumnNumber
in interface ExtendedParseException
ExtendedParseException.getColumnNumber()
public int getLineNumber()
ExtendedParseException
getLineNumber
in interface ExtendedParseException
ExtendedParseException.getLineNumber()
public java.lang.String getTemplateName()
ExtendedParseException
getTemplateName
in interface ExtendedParseException
ExtendedParseException.getTemplateName()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable.getMessage()