MediaWiki
REL1_20
|
Show an error that looks like an HTTP server error. More...
Public Member Functions | |
__construct ($httpCode, $content, $header=null) | |
Constructor. | |
report () | |
Output a report about the exception and takes care of formatting. | |
Public Attributes | |
$content | |
$header | |
Private Attributes | |
$httpCode |
Show an error that looks like an HTTP server error.
Replacement for wfHttpError().
Definition at line 554 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 564 of file Exception.php.
Output a report about the exception and takes care of formatting.
It will be either HTML or plain text based on isCommandLine().
Reimplemented from MWException.
Definition at line 571 of file Exception.php.
References $content, $header, HttpStatus\getMessage(), and print.
HttpError::$content |
Definition at line 555 of file Exception.php.
Referenced by __construct(), and report().
HttpError::$header |
Definition at line 555 of file Exception.php.
Referenced by __construct(), and report().
HttpError::$httpCode [private] |
Definition at line 555 of file Exception.php.
Referenced by __construct().