diff options
author | Claude Brisson <cbrisson@apache.org> | 2019-09-08 10:42:47 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2019-09-08 10:42:47 +0000 |
commit | 5782c4cfa7beab546f778d51d5af2c3503e76aec (patch) | |
tree | 5bd4ca076135fa41f3d8be47c15cba1f323d3312 /velocity-engine-core/src/main/java/org/apache/velocity/exception/ResourceNotFoundException.java | |
parent | acf40deb4da66c5852b16244f3d818e46ed2b7c2 (diff) | |
download | apache-velocity-engine-5782c4cfa7beab546f778d51d5af2c3503e76aec.tar.gz |
[VELOCITY-916] Add a second effect for the debugging flag runtime.log.track_location: display VTL stacktrace on errors
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1866609 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/exception/ResourceNotFoundException.java')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/exception/ResourceNotFoundException.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/exception/ResourceNotFoundException.java b/velocity-engine-core/src/main/java/org/apache/velocity/exception/ResourceNotFoundException.java index 807acb02..7bc2b4cf 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/exception/ResourceNotFoundException.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/exception/ResourceNotFoundException.java @@ -59,6 +59,18 @@ public class ResourceNotFoundException extends VelocityException } /** + * @param exceptionMessage + * @param t + * @param stacktrace VTL stacktrace + * @see VelocityException#VelocityException(String, Throwable) + * @since 2.2 + */ + public ResourceNotFoundException(final String exceptionMessage, final Throwable t, final String[] stacktrace) + { + super(exceptionMessage, t, stacktrace); + } + + /** * @param t * @see VelocityException#VelocityException(Throwable) * @since 1.5 @@ -67,4 +79,15 @@ public class ResourceNotFoundException extends VelocityException { super(t); } + + /** + * @param t + * @param stacktrace VTL stacktrace + * @see VelocityException#VelocityException(Throwable) + * @since 2.2 + */ + public ResourceNotFoundException(final Throwable t, String[] stacktrace) + { + super(t, stacktrace); + } } |