blob: 2f65d91a9a5571004233e77ca63ab022d1fd217d [file]
// Copyright 2005 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry;
import org.apache.hivemind.ApplicationRuntimeException;
/**
* Subclass of {@link org.apache.hivemind.ApplicationRuntimeException} thrown when a requested
* page does not exist.
*
* @author Howard M. Lewis Ship
* @since 4.0
*/
public class PageNotFoundException extends ApplicationRuntimeException
{
private static final long serialVersionUID = -9123254357382597407L;
private final String _pageName;
public PageNotFoundException(String message)
{
this(null, message);
}
public PageNotFoundException(String pageName, String message)
{
super(message);
_pageName = pageName;
}
/**
* @since 4.1.1
*/
public String getPageName()
{
return _pageName;
}
}