You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2006/10/15 19:25:38 UTC

svn commit: r464232 - /incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java

Author: ehillenius
Date: Sun Oct 15 10:25:37 2006
New Revision: 464232

URL: http://svn.apache.org/viewvc?view=rev&rev=464232
Log:
better throw an abort exception (e.g. for when last modified requests are made for non-existing resources)

Modified:
    incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java

Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java?view=diff&rev=464232&r1=464231&r2=464232
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/PackageResource.java Sun Oct 15 10:25:37 2006
@@ -38,6 +38,7 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
+import wicket.AbortException;
 import wicket.Application;
 import wicket.RequestCycle;
 import wicket.SharedResources;
@@ -556,7 +557,7 @@
 			}
 			else
 			{
-				throw new WicketRuntimeException(msg);
+				throw new AbortException();
 			}
 		}
 		this.locale = resourceStream.getLocale();