Ärver från annan mer lämplig exceptionklass

git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@542 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
dan-kjel 2011-03-31 05:38:07 +00:00
parent 61c5e89840
commit 2d131ec8dd

@ -2,6 +2,7 @@ package se.su.dsv.scipro.exceptions;
import org.apache.wicket.Component;
import org.apache.wicket.RestartResponseAtInterceptPageException;
import org.apache.wicket.RestartResponseException;
import org.apache.wicket.WicketRuntimeException;
import se.su.dsv.scipro.basepages.errorpages.NotFoundPage;
@ -13,13 +14,13 @@ import se.su.dsv.scipro.basepages.errorpages.NotFoundPage;
* @author Dan Kjellman <dan-kjel@dsv.su.se>
*
*/
public class PageNotFoundException extends WicketRuntimeException {
public class PageNotFoundException extends RestartResponseAtInterceptPageException {
private static final long serialVersionUID = 1L;
public PageNotFoundException(final Component comp){
super(NotFoundPage.class);
//TODO: Possibly log something...
throw new RestartResponseAtInterceptPageException(NotFoundPage.class);
}
}