MediaWiki
REL1_19
|
Show an error that looks like an HTTP server error. More...
Public Member Functions | |
__construct ($httpCode, $content, $header=null) | |
Constructor. | |
reportHTML () | |
Output the exception report using HTML. | |
Public Attributes | |
$content | |
$header | |
Private Attributes | |
$httpCode |
Show an error that looks like an HTTP server error.
Replacement for wfHttpError().
Definition at line 424 of file Exception.php.
HttpError::__construct | ( | $ | httpCode, |
$ | content, | ||
$ | header = null |
||
) |
Constructor.
$httpCode | Integer: HTTP status code to send to the client |
$content | String|Message: content of the message |
$header | String|Message: content of the header (<title> and <h1>) |
Definition at line 434 of file Exception.php.
Output the exception report using HTML.
Reimplemented from MWException.
Definition at line 441 of file Exception.php.
References $content, $header, HttpStatus\getMessage(), and print.
HttpError::$content |
Definition at line 425 of file Exception.php.
Referenced by __construct(), and reportHTML().
HttpError::$header |
Definition at line 425 of file Exception.php.
Referenced by __construct(), and reportHTML().
HttpError::$httpCode [private] |
Definition at line 425 of file Exception.php.
Referenced by __construct().