/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function render($request, Exception $e)
{
$response = $this->exceptionHandler->render($request, $e);
if ($response instanceof RedirectResponse) {
return $response;
}
$content = $response->getContent();
if ($content instanceof View) {
return $response;
}
$response->setContent($this->blueScreen->render($e));
return $response;
}