MediaWiki master
Wikimedia\Rdbms\DBTransactionError Class Reference

Inherits Wikimedia\Rdbms\DBExpectedError, and INormalizedException.

Inherited by Wikimedia\Rdbms\DBSessionStateError, Wikimedia\Rdbms\DBTransactionSizeError, and Wikimedia\Rdbms\DBTransactionStateError.

Collaboration diagram for Wikimedia\Rdbms\DBTransactionError:

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.

Detailed Description

Stability: newable

Definition at line 29 of file DBTransactionError.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\DBTransactionError::__construct ( ?IDatabase $db,
array $params = [],
\Throwable $prev = null,
$errorParams = [] )
Stability: stable
to call
IDatabase | null$db
array$paramsparameters to be passed down to the i18n message
\\Throwable | null$prev
array$errorParamsPSR-3 message context

Definition at line 41 of file DBTransactionError.php.

References Wikimedia\Rdbms\DBError\$db, and Wikimedia\Rdbms\DBExpectedError\$params.

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