function Connection::exceptionHandler

Returns the database exceptions handler.

@todo in drupal:11.0.0, return a new ExceptionHandler instance directly.

Return value

\Drupal\Core\Database\ExceptionHandler The database exceptions handler.

Overrides Connection::exceptionHandler

File

core/modules/mysql/src/Driver/Database/mysql/Connection.php, line 392

Class

Connection
MySQL implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\mysql\Driver\Database\mysql

Code

public function exceptionHandler() {
  return new ExceptionHandler();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.