public function display(Exception $exception, $code)
    {
        $content = $this->whoops()->handleException($exception);
        if( $this->request->wantsJson() ) {
            return Response::create( $content, $code )->header( 'Content-Type', 'application/json');
        } else {
            return Response::create( $content, $code);
        }
    }
public function display(Exception $exception, $code)
    {
        $content = $this->whoops()->handleException($exception);
        if( $this->request->wantsJson() ) {
            return Response::create( $content, $code )->header( 'Content-Type', 'application/json');
        } else {
            return Response::create( $content, $code);
        }
    }
public function display ( Exception $ exception , $ code ) { $ content = $ this -> whoops ( ) -> handleException ( $ exception ) ; if ( $ this -> request -> wantsJson ( ) ) { return Response :: create ( $ content , $ code ) -> header ( 'Content-Type' , 'application/json' ) ; } else { return Response :: create ( $ content , $ code ) ; } }
Get the Whoops HTML content associated with the given exception.

@param \Exception $exception
@param int        $code

@return string
Get the Whoops HTML content associated with the given exception .