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/sqlite/src/Driver/Database/sqlite/Connection.php, line 522

Class

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

Namespace

Drupal\sqlite\Driver\Database\sqlite

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.