MediaWiki REL1_39
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.
 
 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
Stability: stable
to extend

Definition at line 30 of file DBTransactionError.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\DBTransactionError::__construct ( ?IDatabase $db,
$error,
array $params = [],
\Throwable $prev = null,
$errorParams = [] )
Stability: stable
to call
Parameters
IDatabase | null$db
string$error
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: