function StubConnection::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/
tests/ Drupal/ Tests/ Core/ Database/ Stub/ StubConnection.php, line 116
Class
- StubConnection
- A stub of the abstract Connection class for testing purposes.
Namespace
Drupal\Tests\Core\Database\StubCode
public function exceptionHandler() {
return new ExceptionHandler();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.