MediaWiki  REL1_19
HttpError Class Reference

Show an error that looks like an HTTP server error. More...

Inheritance diagram for HttpError:
Collaboration diagram for HttpError:

List of all members.

Public Member Functions

 __construct ($httpCode, $content, $header=null)
 Constructor.
 reportHTML ()
 Output the exception report using HTML.

Public Attributes

 $content
 $header

Private Attributes

 $httpCode

Detailed Description

Show an error that looks like an HTTP server error.

Replacement for wfHttpError().

Definition at line 424 of file Exception.php.


Constructor & Destructor Documentation

HttpError::__construct ( httpCode,
content,
header = null 
)

Constructor.

Parameters:
$httpCodeInteger: HTTP status code to send to the client
$contentString|Message: content of the message
$headerString|Message: content of the header (<title> and <h1>)

Definition at line 434 of file Exception.php.

References $content, $header, and $httpCode.


Member Function Documentation

Output the exception report using HTML.

Reimplemented from MWException.

Definition at line 441 of file Exception.php.

References $content, $header, HttpStatus\getMessage(), and print.

Here is the call graph for this function:


Member Data Documentation

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().


The documentation for this class was generated from the following file: