private function handleUncaughtException(\Throwable $exception, Request $request) : Response
    {
        $httpException = new HttpInternalServerErrorException('Uncaught exception', $exception);

        return $this->handleHttpException($httpException, $request);
    }
private function handleUncaughtException(\Throwable $exception, Request $request) : Response
    {
        $httpException = new HttpInternalServerErrorException('Uncaught exception', $exception);

        return $this->handleHttpException($httpException, $request);
    }
private function handleUncaughtException ( \ Throwable $ exception , Request $ request ) : Response { $ httpException = new HttpInternalServerErrorException ( 'Uncaught exception' , $ exception ) ; return $ this -> handleHttpException ( $ httpException , $ request ) ; }
Wraps an uncaught exception in an HttpInternalServerErrorException, and converts it to a Response.

@param \Throwable          $exception
@param \Brick\Http\Request $request

@return \Brick\Http\Response
Wraps an uncaught exception in an HttpInternalServerErrorException and converts it to a Response .