public function render( $request, Exception $e )
	{
		$transformed = $this->getTransformed( $e );

		$response = method_exists( $e, 'getResponse' ) ? $e->getResponse() : null;

		if ( !$response instanceof Response )
			try
			{
				$response = $this->getResponse( $request, $e, $transformed );
			}
			catch ( Exception $e )
			{
				$this->report( $e );
				$response = new Response( 'Internal server error.', 500 );
			}

		return $this->toHttpResponse( $response, $transformed );
	}
public function render( $request, Exception $e )
	{
		$transformed = $this->getTransformed( $e );

		$response = method_exists( $e, 'getResponse' ) ? $e->getResponse() : null;

		if ( !$response instanceof Response )
			try
			{
				$response = $this->getResponse( $request, $e, $transformed );
			}
			catch ( Exception $e )
			{
				$this->report( $e );
				$response = new Response( 'Internal server error.', 500 );
			}

		return $this->toHttpResponse( $response, $transformed );
	}
public function render ( $ request , Exception $ e ) { $ transformed = $ this -> getTransformed ( $ e ) ; $ response = method_exists ( $ e , 'getResponse' ) ? $ e -> getResponse ( ) : null ; if ( ! $ response instanceof Response ) try { $ response = $ this -> getResponse ( $ request , $ e , $ transformed ) ; } catch ( Exception $ e ) { $ this -> report ( $ e ) ; $ response = new Response ( 'Internal server error.' , 500 ) ; } return $ this -> toHttpResponse ( $ response , $ transformed ) ; }
Render an Exception into a response.

@param  Request $request
@param  Exception $e
@return Response
Render an Exception into a response .