org.apache.velocity.exception
Class 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.
$Id: MethodInvocationException.java,v 1.2.14.1 2004/03/03 23:22:54 geirm Exp $
MethodInvocationException(String message, Throwable e, String methodName) - CTOR - wraps the passed in exception for
examination later
|
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
|
methodName
private String methodName
referenceName
private String referenceName
wrapped
private Throwable wrapped
MethodInvocationException
public MethodInvocationException(String message,
Throwable e,
String methodName)
CTOR - wraps the passed in exception for
examination later
message
- e
- Throwable that we are wrappingmethodName
- name of method that threw the exception
getMethodName
public String getMethodName()
Returns the name of the method that threw the
exception
getReferenceName
public String getReferenceName()
Retrieves the name of the reference that caused the
exception
getWrappedThrowable
public Throwable getWrappedThrowable()
returns the wrapped Throwable that caused this
MethodInvocationException to be thrown
- Throwable thrown by method invocation
setReferenceName
public void setReferenceName(String ref)
Sets the reference name that threw this exception
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.