org.apache.velocity.exception
public class MethodInvocationException extends VelocityException implements ExtendedParseException
Constructor and Description |
---|
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 occured.
|
int |
getLineNumber()
returns the line number where this exception occured.
|
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 occured.
|
void |
setReferenceName(java.lang.String ref)
Sets the reference name that threw this exception.
|
getWrappedThrowable
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 occured.public 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()
Copyright © 2000-2014. All Rights Reserved.