|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.velocity.exception.VelocityException
org.apache.velocity.exception.MethodInvocationException
public class MethodInvocationException
Application-level exception thrown when a reference method is
invoked and an exception is thrown.
When this exception is thrown, a best effort will be made to have
useful information in the exception's message. For complete
information, consult the runtime log.
Field Summary | |
---|---|
private java.lang.String |
methodName
|
private java.lang.String |
referenceName
|
private java.lang.Throwable |
wrapped
|
Constructor Summary | |
---|---|
MethodInvocationException(java.lang.String message,
java.lang.Throwable e,
java.lang.String methodName)
CTOR - wraps the passed in exception for examination later |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String methodName
private java.lang.String referenceName
private java.lang.Throwable wrapped
Constructor Detail |
---|
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 exceptionMethod Detail |
---|
public java.lang.String getMethodName()
public java.lang.Throwable getWrappedThrowable()
public void setReferenceName(java.lang.String ref)
reference
- name of referencepublic java.lang.String getReferenceName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |