DBQueryError Class Reference
[Database]

Inherits DBError.

List of all members.

Public Member Functions

 __construct (Database &$db, $error, $errno, $sql, $fname)
 getText ()
 If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.
 getSQL ()
 getLogMessage ()
 Return the requested URL and point to file and line number from which the exception occured.
 getPageTitle ()
 getHTML ()
 If $wgShowExceptionDetails is true, return a HTML message with a backtrace to the error, otherwise show a message to ask to set it to true to show that information.

Public Attributes

 $error
 $errno
 $sql
 $fname


Detailed Description

Definition at line 2681 of file Database.php.


Constructor & Destructor Documentation

DBQueryError::__construct ( Database &$  db,
error,
errno,
sql,
fname 
)

Definition at line 2684 of file Database.php.

References $errno, $error, $fname, and $sql.


Member Function Documentation

DBQueryError::getHTML (  ) 

If $wgShowExceptionDetails is true, return a HTML message with a backtrace to the error, otherwise show a message to ask to set it to true to show that information.

Returns:
String html to output

Reimplemented from MWException.

Definition at line 2724 of file Database.php.

References getSQL(), MWException::useMessageCache(), and wfMsgNoDB().

DBQueryError::getLogMessage (  ) 

Return the requested URL and point to file and line number from which the exception occured.

Returns:
string

Reimplemented from MWException.

Definition at line 2715 of file Database.php.

DBQueryError::getPageTitle (  ) 

Reimplemented from MWException.

Definition at line 2720 of file Database.php.

References MWException::msg().

DBQueryError::getSQL (  ) 

Definition at line 2706 of file Database.php.

References $wgShowSQLErrors, and MWException::msg().

Referenced by getHTML(), and getText().

DBQueryError::getText (  ) 

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

Reimplemented from MWException.

Definition at line 2697 of file Database.php.

References getSQL(), MWException::useMessageCache(), and wfMsg().


Member Data Documentation

DBQueryError::$errno

Definition at line 2682 of file Database.php.

Referenced by __construct().

DBQueryError::$error

Definition at line 2682 of file Database.php.

Referenced by __construct().

DBQueryError::$fname

Definition at line 2682 of file Database.php.

Referenced by __construct().

DBQueryError::$sql

Definition at line 2682 of file Database.php.

Referenced by __construct().


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

Generated on Sat Sep 5 02:08:36 2009 for MediaWiki by  doxygen 1.5.9