protected function toPrettyErrorResponse( $exception ) {
		$method = RunInterface::EXCEPTION_HANDLER;
		ob_start();
		$this->whoops->$method( $exception );
		$response = ob_get_clean();
		return Response::output( $response )->withStatus( 500 );
	}
protected function toPrettyErrorResponse( $exception ) {
		$method = RunInterface::EXCEPTION_HANDLER;
		ob_start();
		$this->whoops->$method( $exception );
		$response = ob_get_clean();
		return Response::output( $response )->withStatus( 500 );
	}
protected function toPrettyErrorResponse ( $ exception ) { $ method = RunInterface :: EXCEPTION_HANDLER ; ob_start ( ) ; $ this -> whoops -> $ method ( $ exception ) ; $ response = ob_get_clean ( ) ; return Response :: output ( $ response ) -> withStatus ( 500 ) ; }
Convert an exception to a pretty error response.

@codeCoverageIgnore
@param  PhpException      $exception
@return ResponseInterface
Convert an exception to a pretty error response .