DBError Class Reference
[Database]

Database error base class. More...

Inherits MWException.

Inherited by DBConnectionError, DBQueryError, and DBUnexpectedError.

List of all members.

Public Member Functions

 __construct (DatabaseBase &$db, $error)
 Construct a database error.
 getText ()
 If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.

Public Attributes

 $db


Detailed Description

Database error base class.

Definition at line 2498 of file Database.php.


Constructor & Destructor Documentation

DBError::__construct ( DatabaseBase &$  db,
error 
)

Construct a database error.

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

Reimplemented in DBConnectionError.

Definition at line 2506 of file Database.php.


Member Function Documentation

DBError::getText (  ) 

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

Reimplemented from MWException.

Reimplemented in DBQueryError.

Definition at line 2511 of file Database.php.

References $s, and $wgShowDBErrorBacktrace.


Member Data Documentation

DBError::$db

Definition at line 2499 of file Database.php.


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

Generated on Sat Apr 30 22:57:35 2011 for MediaWiki by  doxygen 1.5.9