Autarky\Errors\DefaultErrorHandler::handleWithSymfony PHP Method

handleWithSymfony() protected method

protected handleWithSymfony ( Exception $exception )
$exception Exception
    protected function handleWithSymfony(Exception $exception)
    {
        if (!$exception instanceof FlattenException) {
            $exception = FlattenException::create($exception);
        }
        $handler = new ExceptionHandler($this->debug);
        return Response::create($handler->getHtml($exception), $exception->getStatusCode(), $exception->getHeaders());
    }