|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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.
Constructor Summary | |
---|---|
MethodInvocationException(String message,
Throwable e,
String methodName)
CTOR - wraps the passed in exception for examination later |
Method Summary | |
---|---|
String |
getMethodName()
Returns the name of the method that threw the exception |
String |
getReferenceName()
Retrieves the name of the reference that caused the exception |
Throwable |
getWrappedThrowable()
returns the wrapped Throwable that caused this MethodInvocationException to be thrown |
void |
setReferenceName(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 |
Constructor Detail |
---|
public MethodInvocationException(String message, Throwable e, String methodName)
message
- e
- Throwable that we are wrappingmethodName
- name of method that threw the exceptionMethod Detail |
---|
public String getMethodName()
public Throwable getWrappedThrowable()
public void setReferenceName(String ref)
ref
- name of referencepublic String getReferenceName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |