MediaWiki  REL1_19
DBConnectionError Class Reference
Inheritance diagram for DBConnectionError:
Collaboration diagram for DBConnectionError:

List of all members.

Public Member Functions

 __construct (DatabaseBase &$db, $error= 'unknown error')
 Construct a database error.
 getHTML ()
 getLogMessage ()
 getPageTitle ()
 msg ($key, $fallback)
 reportHTML ()
 Output the exception report using HTML.
 searchForm ()
 useOutputPage ()

Public Attributes

 $error

Private Member Functions

 fileCachedPage ()

Detailed Description

Definition at line 70 of file DatabaseError.php.


Constructor & Destructor Documentation

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

Construct a database error.

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

Reimplemented from DBError.

Definition at line 73 of file DatabaseError.php.

References $error.


Member Function Documentation

Returns:
string

Definition at line 228 of file DatabaseError.php.

References $t, $wgOut, $wgTitle, msg(), Title\newFromText(), and HTMLFileCache\newFromTitle().

Referenced by reportHTML().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
string

Reimplemented from DBError.

Definition at line 130 of file DatabaseError.php.

References $wgShowDBErrorBacktrace, Html\element(), msg(), searchForm(), and MessageCache\singleton().

Here is the call graph for this function:

Returns:
bool

Reimplemented from MWException.

Definition at line 114 of file DatabaseError.php.

Returns:
string

Reimplemented from MWException.

Definition at line 122 of file DatabaseError.php.

References $wgSitename, and msg().

Here is the call graph for this function:

DBConnectionError::msg ( key,
fallback 
)
Parameters:
$key
$fallback
Returns:
string

Reimplemented from MWException.

Definition at line 98 of file DatabaseError.php.

References $fallback, $wgLang, MWException\useMessageCache(), and wfMsgReplaceArgs().

Referenced by fileCachedPage(), getHTML(), getPageTitle(), reportHTML(), and searchForm().

Here is the call graph for this function:

Here is the caller graph for this function:

Output the exception report using HTML.

Reimplemented from MWException.

Definition at line 158 of file DatabaseError.php.

References $wgUseFileCache, echo, fileCachedPage(), and msg().

Here is the call graph for this function:

Returns:
string

Definition at line 191 of file DatabaseError.php.

References $wgServer, $wgSitename, and msg().

Referenced by getHTML().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
bool

Reimplemented from MWException.

Definition at line 88 of file DatabaseError.php.


Member Data Documentation

DBConnectionError::$error

Definition at line 71 of file DatabaseError.php.

Referenced by __construct().


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