<?php

/**
 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @package fusionLib
 * @copyright Copyright (c) 2008 - 2013 fusionLib. All rights reserved.
 * @link http://fusionlib.com
 */

/**
 * flExceptionNotFound Class
 *
 * 404 not found exceptions.
 *
 * @package fusionLib
 */
class flExceptionNotFound extends flException {

	/**
	 * Construct a new exception.
	 *
	 * @param string $msg The message for the exception.
	 */
	function __construct($msg = null) {
		parent::__construct($msg !== null ? $msg : __('The page that you requested could not be located within this website.

Old pages are sometimes removed or moved to new locations in order to keep the site tidy and easily navigable by visitors. If the sites linking to the moved page do not update their links or your bookmark is out of date then you will arrive here.
', 'fusionLib'), 404);
	}

	/**
	 * Get the exception name.
	 *
	 * @return string The human readable exception name.
	 */
	function getName() {
		return __('Page Not Found', 'fusionLib');
	}
}
