MediaWiki  master
Wikimedia\Rdbms\DBTransactionError Class Reference
Inheritance diagram for Wikimedia\Rdbms\DBTransactionError:
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. More...
 getParams ()
 Returns the message parameters. More...
- Public Member Functions inherited from Wikimedia\Rdbms\DBError
 __construct (?IDatabase $db, $error, \Throwable $prev=null)
 Construct a database error. More...

Additional Inherited Members

- Public Attributes inherited from Wikimedia\Rdbms\DBError
IDatabase null $db
- Protected Attributes inherited from Wikimedia\Rdbms\DBExpectedError
string[] $params
 Message parameters. More...

Detailed Description

Stability: newable
Stability: stable
to extend

Definition at line 30 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 42 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: