public function ExceptionHandler::handle

Sends a Response for the given Exception.

Parameters

\Exception $exception An \Exception instance:

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php, line 62

Class

ExceptionHandler
ExceptionHandler converts an exception to a Response object.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function handle(\Exception $exception) {
  $this
    ->createResponse($exception)
    ->send();
}