<?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
 */

/**
 * flExceptionForbidden Class
 *
 * Class for 403 forbidden exceptions.
 *
 * @package fusionLib
 */
class flExceptionForbidden extends flException {

	/**
	 * Construct a new exception.
	 */
	function __construct() {
		parent::__construct(__('You do not have permission to access the requested page.

You may need to login to the site before you are allowed to access the requested page or it could simply be a problem with the URI that is causing this error.
', 'fusionLib'), 403);
	}

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