MediaWiki  master
Wikimedia\Rdbms\DBQueryError Class Reference
Inheritance diagram for Wikimedia\Rdbms\DBQueryError:
Collaboration diagram for Wikimedia\Rdbms\DBQueryError:

Public Member Functions

 __construct (IDatabase $db, $error, $errno, $sql, $fname, $message=null)
 
- Public Member Functions inherited from Wikimedia\Rdbms\DBExpectedError
 __construct (?IDatabase $db, $error, array $params=[], $prev=null)
 
 getKey ()
 Returns the message key. More...
 
 getParams ()
 Returns the message parameters. More...
 
- Public Member Functions inherited from Wikimedia\Rdbms\DBError
 __construct (?IDatabase $db, $error, $prev=null)
 Construct a database error. More...
 

Public Attributes

int $errno
 
string $error
 
string $fname
 
string $sql
 
- Public Attributes inherited from Wikimedia\Rdbms\DBError
IDatabase null $db
 

Additional Inherited Members

- Protected Attributes inherited from Wikimedia\Rdbms\DBExpectedError
string [] $params
 Message parameters. More...
 

Detailed Description

Definition at line 27 of file DBQueryError.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\DBQueryError::__construct ( IDatabase  $db,
  $error,
  $errno,
  $sql,
  $fname,
  $message = null 
)
Parameters
IDatabase$db
string$error
int | string$errno
string$sql
string$fname
string | null$messageOptional message, intended for subclases (optional)

Definition at line 45 of file DBQueryError.php.

References Wikimedia\Rdbms\DBQueryError\$errno, Wikimedia\Rdbms\DBQueryError\$error, Wikimedia\Rdbms\DBQueryError\$fname, and Wikimedia\Rdbms\DBQueryError\$sql.

Member Data Documentation

◆ $errno

int Wikimedia\Rdbms\DBQueryError::$errno

◆ $error

string Wikimedia\Rdbms\DBQueryError::$error

◆ $fname

string Wikimedia\Rdbms\DBQueryError::$fname

◆ $sql

string Wikimedia\Rdbms\DBQueryError::$sql

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