public class MethodInvocationException extends VelocityException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
methodName |
private java.lang.String |
referenceName |
private java.lang.Throwable |
wrapped |
Constructor and Description |
---|
MethodInvocationException(java.lang.String message,
java.lang.Throwable e,
java.lang.String methodName)
CTOR - wraps the passed in exception for
examination later
|
Modifier and Type | Method and Description |
---|---|
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.Throwable |
getWrappedThrowable()
returns the wrapped Throwable that caused this
MethodInvocationException to be thrown
|
void |
setReferenceName(java.lang.String ref)
Sets the reference name that threw this exception
|
private java.lang.String methodName
private java.lang.String referenceName
private java.lang.Throwable wrapped
public MethodInvocationException(java.lang.String message, java.lang.Throwable e, java.lang.String methodName)
message
- e
- Throwable that we are wrappingmethodName
- name of method that threw the exceptionpublic java.lang.String getMethodName()
public java.lang.Throwable getWrappedThrowable()
public void setReferenceName(java.lang.String ref)
reference
- name of referencepublic java.lang.String getReferenceName()
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.