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
1 method overrides Connection::exceptionHandler()
- Connection::exceptionHandler in core/
tests/ fixtures/ database_drivers/ module/ core_fake/ src/ Driver/ Database/ CoreFakeWithAllCustomClasses/ Connection.php - Returns the database exceptions handler.
File
-
core/
tests/ fixtures/ database_drivers/ custom/ fake/ Connection.php, line 90
Class
- Connection
- A fake Connection class for testing purposes.
Namespace
Drupal\Driver\Database\fakeCode
public function exceptionHandler() {
return new ExceptionHandler();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.