4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Exception;
17 * @author Kris Wallsmith <kris@symfony.com>
19 class HttpException extends \RuntimeException implements HttpExceptionInterface
24 public function __construct($statusCode, $message = null, \Exception $previous = null, array $headers = array(), $code = 0)
26 $this->statusCode = $statusCode;
27 $this->headers = $headers;
29 parent::__construct($message, $code, $previous);
32 public function getStatusCode()
34 return $this->statusCode;
37 public function getHeaders()
39 return $this->headers;