MediaWiki master
|
Inherits Wikimedia\Rdbms\DBExpectedError, and INormalizedException.
Inherited by Wikimedia\Rdbms\DBSessionStateError, Wikimedia\Rdbms\DBTransactionSizeError, and Wikimedia\Rdbms\DBTransactionStateError.
Public Member Functions | |
__construct (?IDatabase $db, $error, array $params=[], \Throwable $prev=null, $errorParams=[]) | |
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. | |
Additional Inherited Members | |
Public Attributes inherited from Wikimedia\Rdbms\DBError | |
IDatabase null | $db |
Protected Attributes inherited from Wikimedia\Rdbms\DBExpectedError | |
string[] | $params |
Message parameters. | |
Definition at line 29 of file DBTransactionError.php.
Wikimedia\Rdbms\DBTransactionError::__construct | ( | ?IDatabase | $db, |
$error, | |||
array | $params = [], | ||
\Throwable | $prev = null, | ||
$errorParams = [] ) |
IDatabase | null | $db | |
string | $error | |
array | $params | parameters to be passed down to the i18n message |
\\Throwable | null | $prev | |
array | $errorParams | PSR-3 message context |
Definition at line 41 of file DBTransactionError.php.
References Wikimedia\Rdbms\DBError\$db, and Wikimedia\Rdbms\DBExpectedError\$params.