You are here

public function Connection::exceptionHandler in Drupal 9

Returns the database exceptions handler.

Return value

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

File

core/lib/Drupal/Core/Database/Connection.php, line 1162

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function exceptionHandler() {
  $class = $this
    ->getDriverClass('ExceptionHandler');
  return new $class();
}