You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2011/01/23 07:03:23 UTC

svn commit: r1062331 - /wicket/trunk/wicket-velocity/src/main/java/org/apache/wicket/velocity/markup/html/VelocityPanel.java

Author: ivaynberg
Date: Sun Jan 23 06:03:23 2011
New Revision: 1062331

URL: http://svn.apache.org/viewvc?rev=1062331&view=rev
Log:
WICKET-3369

Modified:
    wicket/trunk/wicket-velocity/src/main/java/org/apache/wicket/velocity/markup/html/VelocityPanel.java

Modified: wicket/trunk/wicket-velocity/src/main/java/org/apache/wicket/velocity/markup/html/VelocityPanel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-velocity/src/main/java/org/apache/wicket/velocity/markup/html/VelocityPanel.java?rev=1062331&r1=1062330&r2=1062331&view=diff
==============================================================================
--- wicket/trunk/wicket-velocity/src/main/java/org/apache/wicket/velocity/markup/html/VelocityPanel.java (original)
+++ wicket/trunk/wicket-velocity/src/main/java/org/apache/wicket/velocity/markup/html/VelocityPanel.java Sun Jan 23 06:03:23 2011
@@ -16,7 +16,6 @@
  */
 package org.apache.wicket.velocity.markup.html;
 
-import java.io.IOException;
 import java.io.Reader;
 import java.io.StringReader;
 import java.io.StringWriter;
@@ -24,9 +23,6 @@ import java.util.Map;
 
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.Velocity;
-import org.apache.velocity.exception.MethodInvocationException;
-import org.apache.velocity.exception.ParseErrorException;
-import org.apache.velocity.exception.ResourceNotFoundException;
 import org.apache.wicket.MarkupContainer;
 import org.apache.wicket.WicketRuntimeException;
 import org.apache.wicket.markup.ComponentTag;
@@ -250,19 +246,7 @@ public abstract class VelocityPanel exte
 				}
 				return evaluatedTemplate;
 			}
-			catch (IOException e)
-			{
-				onException(e);
-			}
-			catch (ParseErrorException e)
-			{
-				onException(e);
-			}
-			catch (MethodInvocationException e)
-			{
-				onException(e);
-			}
-			catch (ResourceNotFoundException e)
+			catch (Exception e)
 			{
 				onException(e);
 			}