MediaWiki  REL1_19
DBError Class Reference

Database error base class. More...

Inheritance diagram for DBError:
Collaboration diagram for DBError:

List of all members.

Public Member Functions

 __construct (DatabaseBase &$db, $error)
 Construct a database error.
 getHTML ()
 getText ()

Public Attributes

 $db

Protected Member Functions

 getContentMessage ($html)

Detailed Description

Database error base class.

Definition at line 7 of file DatabaseError.php.


Constructor & Destructor Documentation

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

Construct a database error.

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

Reimplemented in DBConnectionError.

Definition at line 19 of file DatabaseError.php.

References $db.


Member Function Documentation

DBError::getContentMessage ( html) [protected]
Parameters:
$htmlstring
Returns:
string

Reimplemented in DBQueryError.

Definition at line 28 of file DatabaseError.php.

Referenced by getHTML(), and getText().

Here is the caller graph for this function:

Returns:
string

Reimplemented from MWException.

Reimplemented in DBConnectionError.

Definition at line 54 of file DatabaseError.php.

References $wgShowDBErrorBacktrace, and getContentMessage().

Here is the call graph for this function:

Returns:
string

Reimplemented from MWException.

Definition at line 39 of file DatabaseError.php.

References $wgShowDBErrorBacktrace, and getContentMessage().

Referenced by MysqlInstaller\setupUser().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

DBError::$db

Definition at line 12 of file DatabaseError.php.

Referenced by __construct().


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