function StatementExecutionFailureEvent::__construct
Same name in other branches
- 10 core/lib/Drupal/Core/Database/Event/StatementExecutionFailureEvent.php \Drupal\Core\Database\Event\StatementExecutionFailureEvent::__construct()
Constructor.
See 'Customizing database settings' in settings.php for an explanation of the $key and $target connection values.
Parameters
int $statementObjectId: The id of the StatementInterface object as returned by spl_object_id().
string $key: The database connection key.
string $target: The database connection target.
string $queryString: The SQL statement string being executed, with placeholders.
array $args: The placeholders' replacement values.
array $caller: A normalized debug backtrace entry representing the last non-db method called.
float $startTime: The time of the statement execution start.
string $exceptionClass: The class of the exception that was thrown.
int|string $exceptionCode: The code of the exception that was thrown.
string $exceptionMessage: The message of the exception that was thrown.
Overrides StatementExecutionEndEvent::__construct
File
-
core/
lib/ Drupal/ Core/ Database/ Event/ StatementExecutionFailureEvent.php, line 38
Class
- StatementExecutionFailureEvent
- Represents the failure of a statement execution as an event.
Namespace
Drupal\Core\Database\EventCode
public function __construct(int $statementObjectId, string $key, string $target, string $queryString, array $args, array $caller, float $startTime, string $exceptionClass, int|string $exceptionCode, string $exceptionMessage) {
parent::__construct($statementObjectId, $key, $target, $queryString, $args, $caller, $startTime);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.