public class MethodInvocationException extends VelocityException implements ExtendedParseException
| 构造器和说明 |
|---|
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
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
getWrappedThrowablepublic 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()
ExtendedParseExceptiongetColumnNumber 在接口中 ExtendedParseExceptionExtendedParseException.getColumnNumber()public int getLineNumber()
ExtendedParseExceptiongetLineNumber 在接口中 ExtendedParseExceptionExtendedParseException.getLineNumber()public java.lang.String getTemplateName()
ExtendedParseExceptiongetTemplateName 在接口中 ExtendedParseExceptionExtendedParseException.getTemplateName()public java.lang.String getMessage()
getMessage 在类中 java.lang.ThrowableThrowable.getMessage()