Author: ajaquith
Date: Mon Mar 1 05:15:09 2010
New Revision: 917384
URL: http://svn.apache.org/viewvc?rev=917384&view=rev
Log:
Exceptions caught by WikiTagBase (and subclass tags) are now re-thrown so that
they propagate upstream. Previously, doCatch() was swallowing them, which made
for "interesting" JSP debugging.
Modified:
incubator/jspwiki/trunk/src/java/org/apache/wiki/tags/WikiTagBase.java
Modified: incubator/jspwiki/trunk/src/java/org/apache/wiki/tags/WikiTagBase.java
URL:
http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/tags/WikiTagBase.java?rev=917384&r1=917383&r2=917384&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/java/org/apache/wiki/tags/WikiTagBase.java
(original)
+++ incubator/jspwiki/trunk/src/java/org/apache/wiki/tags/WikiTagBase.java Mon
Mar 1 05:15:09 2010
@@ -176,10 +176,12 @@
}
/**
- * {...@inheritdoc}. The default implementation does nothing.
+ * {...@inheritdoc}. The default implementation re-throws the Throwable.
+ * @param cause the Throwable exception that caused the error
*/
- public void doCatch(Throwable arg0) throws Throwable
+ public void doCatch(Throwable cause ) throws Throwable
{
+ throw cause;
}
/**