MediaWiki REL1_40
|
Inherits Wikimedia\Rdbms\DBExpectedError.
Inherited by Wikimedia\Rdbms\DBQueryDisconnectedError, and Wikimedia\Rdbms\DBQueryTimeoutError.
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=[], \Throwable $prev=null) | |
getKey () | |
Returns the message key. | |
getParams () | |
Returns the message parameters. | |
Public Member Functions inherited from Wikimedia\Rdbms\DBError | |
__construct (?IDatabase $db, $error, \Throwable $prev=null) | |
Construct a database error. | |
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. | |
Wikimedia\Rdbms\DBQueryError::__construct | ( | IDatabase | $db, |
$error, | |||
$errno, | |||
$sql, | |||
$fname, | |||
$message = null ) |
IDatabase | $db | |
string | $error | |
int | string | $errno | |
string | $sql | |
string | $fname | |
string | null | $message | Optional message, intended for subclasses (optional) |
Reimplemented in Wikimedia\Rdbms\DBQueryDisconnectedError.
Definition at line 46 of file DBQueryError.php.
References Wikimedia\Rdbms\DBError\$db, Wikimedia\Rdbms\DBQueryError\$errno, Wikimedia\Rdbms\DBQueryError\$error, Wikimedia\Rdbms\DBQueryError\$fname, Wikimedia\Rdbms\DBQueryError\$sql, and Wikimedia\Rdbms\IReadableDatabase\getServerName().
int Wikimedia\Rdbms\DBQueryError::$errno |
Definition at line 31 of file DBQueryError.php.
Referenced by Wikimedia\Rdbms\DBQueryTimeoutError\__construct(), Wikimedia\Rdbms\DBQueryDisconnectedError\__construct(), and Wikimedia\Rdbms\DBQueryError\__construct().
string Wikimedia\Rdbms\DBQueryError::$error |
Definition at line 29 of file DBQueryError.php.
Referenced by Wikimedia\Rdbms\DBQueryTimeoutError\__construct(), Wikimedia\Rdbms\DBQueryDisconnectedError\__construct(), and Wikimedia\Rdbms\DBQueryError\__construct().
string Wikimedia\Rdbms\DBQueryError::$fname |
Definition at line 35 of file DBQueryError.php.
Referenced by Wikimedia\Rdbms\DBQueryTimeoutError\__construct(), Wikimedia\Rdbms\DBQueryDisconnectedError\__construct(), and Wikimedia\Rdbms\DBQueryError\__construct().
string Wikimedia\Rdbms\DBQueryError::$sql |
Definition at line 33 of file DBQueryError.php.
Referenced by Wikimedia\Rdbms\DBQueryTimeoutError\__construct(), Wikimedia\Rdbms\DBQueryDisconnectedError\__construct(), and Wikimedia\Rdbms\DBQueryError\__construct().