FatalError Class Reference
[Exception]

Exception class which takes an HTML error message, and does not produce a backtrace. More...

Inherits MWException.

List of all members.

Public Member Functions

 getHTML ()
 If $wgShowExceptionDetails is true, return a HTML message with a backtrace to the error, otherwise show a message to ask to set it to true to show that information.
 getText ()
 If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.


Detailed Description

Exception class which takes an HTML error message, and does not produce a backtrace.

Replacement for OutputPage::fatalError().

Definition at line 238 of file Exception.php.


Member Function Documentation

FatalError::getHTML (  ) 

If $wgShowExceptionDetails is true, return a HTML message with a backtrace to the error, otherwise show a message to ask to set it to true to show that information.

Returns:
String html to output

Reimplemented from MWException.

Definition at line 239 of file Exception.php.

FatalError::getText (  ) 

If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.

Reimplemented from MWException.

Definition at line 243 of file Exception.php.


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

Generated on Sat Sep 5 02:08:37 2009 for MediaWiki by  doxygen 1.5.9