You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by cb...@apache.org on 2010/09/10 12:43:11 UTC
svn commit: r995742 -
/velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/exception/VelocityException.java
Author: cbrisson
Date: Fri Sep 10 10:43:11 2010
New Revision: 995742
URL: http://svn.apache.org/viewvc?rev=995742&view=rev
Log:
put back method VelocityException.getWrappedThrowable() as deprecated
Modified:
velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/exception/VelocityException.java
Modified: velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/exception/VelocityException.java
URL: http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/exception/VelocityException.java?rev=995742&r1=995741&r2=995742&view=diff
==============================================================================
--- velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/exception/VelocityException.java (original)
+++ velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/exception/VelocityException.java Fri Sep 10 10:43:11 2010
@@ -60,4 +60,17 @@ public class VelocityException extends R
super(wrapped);
}
+ /**
+ * returns the wrapped Throwable that caused this
+ * MethodInvocationException to be thrown
+ *
+ * @return Throwable thrown by method invocation
+ * @since 1.5
+ * @deprecated Use {@link java.lang.RuntimeException#getCause()}
+ */
+ public Throwable getWrappedThrowable()
+ {
+ return getCause();
+ }
+
}