MediaWiki  REL1_22
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=null, $error)
 Construct a database error.
 getHTML ()
 getText ()

Public Attributes

DatabaseBase $db

Protected Member Functions

 getHTMLContent ()
 getTextContent ()

Detailed Description

Database error base class.

Definition at line 28 of file DatabaseError.php.


Constructor & Destructor Documentation

DBError::__construct ( DatabaseBase db = null,
error 
)

Construct a database error.

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

Reimplemented in DBConnectionError.

Definition at line 39 of file DatabaseError.php.


Member Function Documentation

Returns:
string

Reimplemented from MWException.

Reimplemented in DBConnectionError.

Definition at line 62 of file DatabaseError.php.

DBError::getHTMLContent ( ) [protected]
Returns:
string

Reimplemented in DBQueryError.

Definition at line 85 of file DatabaseError.php.

Returns:
string

Reimplemented from MWException.

Definition at line 47 of file DatabaseError.php.

Referenced by MysqlInstaller\setupUser().

DBError::getTextContent ( ) [protected]
Returns:
string

Reimplemented in DBQueryError, and DBConnectionError.

Definition at line 78 of file DatabaseError.php.


Member Data Documentation

DatabaseBase DBError::$db

Definition at line 32 of file DatabaseError.php.

Referenced by DBConnectionError\__construct().


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