* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\exception; use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; /** * Class http_exception */ class http_exception extends runtime_exception implements HttpExceptionInterface { /** * Http status code. * * @var integer */ private $status_code; /** * Additional headers to set in the response. * * @var array */ private $headers; /** * Constructor * * @param integer $status_code The http status code. * @param string $message The Exception message to throw (must be a language variable). * @param array $parameters The parameters to use with the language var. * @param \Exception $previous The previous exception used for the exception chaining. * @param array $headers Additional headers to set in the response. * @param integer $code The Exception code. */ public function __construct($status_code, $message = "", array $parameters = array(), \Exception $previous = null, array $headers = array(), $code = 0) { $this->status_code = $status_code; $this->headers = $headers; parent::__construct($message, $parameters, $previous, $code); } /** * {@inheritdoc} */ public function getStatusCode() { return $this->status_code; } /** * {@inheritdoc} */ public function getHeaders() { return $this->headers; } } distro/mga1'>distro/mga1 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/share/po
diff options
context:
space:
mode:
authorAnne Nicolas <ennael@mageia.org>2011-04-24 23:04:19 +0000
committerAnne Nicolas <ennael@mageia.org>2011-04-24 23:04:19 +0000
commit18662fbf4d60e0fcf3f143aab68506a69826641f (patch)
treeafd0ddd3c42793014bb2631a87d8576dab37980c /perl-install/share/po
parent45310c58ac44f43743ec680c87fe24ea7311a7ec (diff)
downloaddrakx-backup-do-not-use-18662fbf4d60e0fcf3f143aab68506a69826641f.tar
drakx-backup-do-not-use-18662fbf4d60e0fcf3f143aab68506a69826641f.tar.gz
drakx-backup-do-not-use-18662fbf4d60e0fcf3f143aab68506a69826641f.tar.bz2
drakx-backup-do-not-use-18662fbf4d60e0fcf3f143aab68506a69826641f.tar.xz
drakx-backup-do-not-use-18662fbf4d60e0fcf3f143aab68506a69826641f.zip
replace Mageia Linux by Mageia
Diffstat (limited to 'perl-install/share/po')