MediaWiki  REL1_20
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

DatabaseBase $db

Protected Member Functions

 getContentMessage ($html)

Detailed Description

Database error base class.

Definition at line 28 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 39 of file DatabaseError.php.


Member Function Documentation

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

Reimplemented in DBQueryError.

Definition at line 48 of file DatabaseError.php.

Returns:
string

Reimplemented from MWException.

Reimplemented in DBConnectionError.

Definition at line 74 of file DatabaseError.php.

Returns:
string

Reimplemented from MWException.

Definition at line 59 of file DatabaseError.php.

Referenced by MysqlInstaller\setupUser().


Member Data Documentation

DatabaseBase DBError::$db

Definition at line 32 of file DatabaseError.php.


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