function Connection::exceptionHandler
Returns the database exceptions handler.
Return value
\Drupal\Core\Database\ExceptionHandler The database exceptions handler.
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1196
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function exceptionHandler() {
$class = $this->getDriverClass('ExceptionHandler');
return new $class();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.