diff options
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java b/velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java index 0c16bc33..a88b14b2 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/exception/MethodInvocationException.java @@ -69,6 +69,28 @@ public class MethodInvocationException extends VelocityException implements Exte } /** + * CTOR - wraps the passed in exception for + * examination later + * + * @param message + * @param e Throwable that we are wrapping + * @param stacktrace VTL stacktrace + * @param methodName name of method that threw the exception + * @param templateName The name of the template where the exception occurred + * @param lineNumber line number + * @param columnNumber column number + */ + public MethodInvocationException(final String message, final Throwable e, final String[] stacktrace, final String methodName, final String templateName, final int lineNumber, final int columnNumber) + { + super(message, e, stacktrace); + + this.methodName = methodName; + this.templateName = templateName; + this.lineNumber = lineNumber; + this.columnNumber = columnNumber; + } + + /** * Returns the name of the method that threw the * exception. * |