MediaWiki
1.23.5
|
Show an error that looks like an HTTP server error. More...
Public Member Functions | |
__construct ( $httpCode, $content, $header=null) | |
Constructor. More... | |
getHTML () | |
Returns HTML for reporting the HTTP error. More... | |
getStatusCode () | |
Returns the HTTP status code supplied to the constructor. More... | |
report () | |
Report the HTTP error. More... | |
Public Member Functions inherited from MWException | |
getLogId () | |
Get a the ID for this error. More... | |
getLogMessage () | |
Return the requested URL and point to file and line number from which the exception occurred. More... | |
getPageTitle () | |
Return the title of the page when reporting this error in a HTTP response. More... | |
getText () | |
Get the text to display when reporting the error on the command line. More... | |
isLoggable () | |
Whether to log this exception in the exception debug log. More... | |
msg ( $key, $fallback) | |
Get a message from i18n. More... | |
reportHTML () | |
Output the exception report using HTML. More... | |
runHooks ( $name, $args=array()) | |
Run hook to allow extensions to modify the text of the exception. More... | |
useMessageCache () | |
Can the extension use the Message class/wfMessage to get i18n-ed messages? More... | |
useOutputPage () | |
Should the exception use $wgOut to output the error? More... | |
Public Attributes | |
$content | |
$header | |
Private Attributes | |
$httpCode | |
Additional Inherited Members | |
Static Public Member Functions inherited from MWException | |
static | isCommandLine () |
Check whether we are in command line mode or not to report the exception in the correct format. More... | |
Show an error that looks like an HTTP server error.
Replacement for wfHttpError().
Definition at line 28 of file HttpError.php.
HttpError::__construct | ( | $httpCode, | |
$content, | |||
$header = null |
|||
) |
HttpError::getHTML | ( | ) |
Returns HTML for reporting the HTTP error.
This will be a minimal but complete HTML document.
Reimplemented from MWException.
Definition at line 74 of file HttpError.php.
References $content, $header, content, and HttpStatus\getMessage().
Referenced by report().
HttpError::getStatusCode | ( | ) |
Returns the HTTP status code supplied to the constructor.
Definition at line 50 of file HttpError.php.
References $httpCode.
HttpError::report | ( | ) |
Report the HTTP error.
Sends the appropriate HTTP status code and outputs an HTML page with an error message.
Reimplemented from MWException.
Definition at line 59 of file HttpError.php.
References getHTML(), and HttpStatus\getMessage().
HttpError::$content |
Definition at line 29 of file HttpError.php.
Referenced by __construct(), and getHTML().
HttpError::$header |
Definition at line 29 of file HttpError.php.
Referenced by __construct(), and getHTML().
|
private |
Definition at line 29 of file HttpError.php.
Referenced by __construct(), and getStatusCode().