public class MethodInvocationException extends VelocityException implements ExtendedParseException
Constructor and Description |
---|
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.
|
getWrappedThrowable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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 String getMethodName()
public void setReferenceName(String ref)
ref
- name of referencepublic String getReferenceName()
public int getColumnNumber()
ExtendedParseException
getColumnNumber
in interface ExtendedParseException
ExtendedParseException.getColumnNumber()
public int getLineNumber()
ExtendedParseException
getLineNumber
in interface ExtendedParseException
ExtendedParseException.getLineNumber()
public String getTemplateName()
ExtendedParseException
getTemplateName
in interface ExtendedParseException
ExtendedParseException.getTemplateName()
public String getMessage()
getMessage
in class Throwable
Throwable.getMessage()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.