Connection::handleQueryException
protected function Connection::handleQueryException
protected Connection::handleQueryException(\PDOException $e, $query, array $args = array(), $options = array())
Wraps and re-throws any PDO exception thrown by static::query().
Parameters
\PDOException $e: The exception thrown by static::query().
$query: The query executed by static::query().
array $args: An array of arguments for the prepared statement.
array $options: An associative array of options to control how the query is run.
Return value
\Drupal\Core\Database\StatementInterface|int|null Most database drivers will return NULL when a PDO exception is thrown for a query, but some of them may need to re-run the query, so they can also return a