| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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,
                          String templateName,
                          int lineNumber,
                          int columnNumber)
CTOR - wraps the passed in exception for examination later  | 
|
| Method Summary | |
|---|---|
 int | 
getColumnNumber()
returns the column number where this exception occured.  | 
 int | 
getLineNumber()
returns the line number where this exception occured.  | 
 String | 
getMessage()
 | 
 String | 
getMethodName()
Returns the name of the method that threw the exception.  | 
 String | 
getReferenceName()
Retrieves the name of the reference that caused the exception.  | 
 String | 
getTemplateName()
returns the Template name where this exception occured.  | 
 void | 
setReferenceName(String ref)
Sets the reference name that threw this exception.  | 
| Methods inherited from class org.apache.velocity.exception.VelocityException | 
|---|
getWrappedThrowable | 
| Methods inherited from class java.lang.Throwable | 
|---|
fillInStackTrace, getCause, getLocalizedMessage, 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,
                                 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.| Method Detail | 
|---|
public String getMethodName()
public void setReferenceName(String ref)
ref - name of referencepublic String getReferenceName()
public int getColumnNumber()
ExtendedParseException
getColumnNumber in interface ExtendedParseExceptionExtendedParseException.getColumnNumber()public int getLineNumber()
ExtendedParseException
getLineNumber in interface ExtendedParseExceptionExtendedParseException.getLineNumber()public String getTemplateName()
ExtendedParseException
getTemplateName in interface ExtendedParseExceptionExtendedParseException.getTemplateName()public String getMessage()
getMessage in class ThrowableThrowable.getMessage()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||