DBConnectionError Class Reference
[Database]

Inherits DBError.

List of all members.

Public Member Functions

 __construct (Database &$db, $error= 'unknown error')
 Construct a database error.
 useOutputPage ()
 Should the exception use $wgOut to output the error ?
 useMessageCache ()
 Can the extension use wfMsg() to get i18n messages ?
 getText ()
 If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.
 getLogMessage ()
 Return the requested URL and point to file and line number from which the exception occured.
 getPageTitle ()
 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.
 searchForm ()
 fileCachedPage ()
 htmlBodyOnly ()
 headers handled by subclass?

Public Attributes

 $error


Detailed Description

Definition at line 2514 of file Database.php.


Constructor & Destructor Documentation

DBConnectionError::__construct ( Database &$  db,
error = 'unknown error' 
)

Construct a database error.

Parameters:
$db Database object which threw the error
$error A simple error message to be used for debugging

Reimplemented from DBError.

Definition at line 2517 of file Database.php.

References $error, and $msg.


Member Function Documentation

DBConnectionError::fileCachedPage (  ) 

Definition at line 2648 of file Database.php.

References $t, $title, $wgLang, $wgOut, $wgTitle, Title::newFromText(), and Title::newFromURL().

Referenced by getHTML().

DBConnectionError::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 2555 of file Database.php.

References $text, $wgLang, $wgMessageCache, $wgUseFileCache, fileCachedPage(), MWException::htmlFooter(), MWException::htmlHeader(), and searchForm().

DBConnectionError::getLogMessage (  ) 

Return the requested URL and point to file and line number from which the exception occured.

Returns:
string

Reimplemented from MWException.

Definition at line 2540 of file Database.php.

DBConnectionError::getPageTitle (  ) 

Reimplemented from MWException.

Definition at line 2545 of file Database.php.

References $wgLang, and $wgSitename.

DBConnectionError::getText (  ) 

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

Reimplemented from MWException.

Definition at line 2536 of file Database.php.

DBConnectionError::htmlBodyOnly (  ) 

headers handled by subclass?

Reimplemented from MWException.

Definition at line 2672 of file Database.php.

DBConnectionError::searchForm (  ) 

Definition at line 2610 of file Database.php.

References $wgInputEncoding, $wgLang, $wgServer, and $wgSitename.

Referenced by getHTML().

DBConnectionError::useMessageCache (  ) 

Can the extension use wfMsg() to get i18n messages ?

Returns:
bool

Reimplemented from MWException.

Definition at line 2531 of file Database.php.

DBConnectionError::useOutputPage (  ) 

Should the exception use $wgOut to output the error ?

Returns:
bool

Reimplemented from MWException.

Definition at line 2526 of file Database.php.


Member Data Documentation

DBConnectionError::$error

Definition at line 2515 of file Database.php.

Referenced by __construct().


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

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