1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- * Part of the Fuel framework.
- *
- * @package Fuel
- * @version 1.5
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2013 Fuel Development Team
- * @link http://fuelphp.com
- */
- namespace Fuel\Core;
- abstract class HttpException extends \FuelException
- {
- /**
- * Must return a response object for the handle method
- *
- * @return Response
- */
- abstract protected function response();
- /**
- * When this type of exception isn't caught this method is called by
- * Error::exception_handler() to deal with the problem.
- */
- public function handle()
- {
- $response = $this->response();
- \Event::shutdown();
- $response->send(true);
- }
- }
|