PHP Class Laravel\Lumen\Exceptions\Handler

Inheritance: implements Illuminate\Contracts\Debug\ExceptionHandler
Exibir arquivo Open project: laravel/lumen-framework Class Usage Examples

Protected Properties

Property Type Description
$dontReport array A list of the exception types that should not be reported.

Public Methods

Method Description
render ( Illuminate\Http\Request $request, Exception $e ) : Illuminate\Http\Response Render an exception into an HTTP response.
renderForConsole ( Symfony\Component\Console\Output\OutputInterface $output, Exception $e ) : void Render an exception to the console.
report ( Exception $e ) : void Report or log an exception.
shouldReport ( Exception $e ) : boolean Determine if the exception should be reported.

Protected Methods

Method Description
decorate ( string $content, string $css ) : string Get the html response content.
shouldntReport ( Exception $e ) : boolean Determine if the exception is in the "do not report" list.

Method Details

decorate() protected method

Get the html response content.
protected decorate ( string $content, string $css ) : string
$content string
$css string
return string

render() public method

Render an exception into an HTTP response.
public render ( Illuminate\Http\Request $request, Exception $e ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$e Exception
return Illuminate\Http\Response

renderForConsole() public method

Render an exception to the console.
public renderForConsole ( Symfony\Component\Console\Output\OutputInterface $output, Exception $e ) : void
$output Symfony\Component\Console\Output\OutputInterface
$e Exception
return void

report() public method

Report or log an exception.
public report ( Exception $e ) : void
$e Exception
return void

shouldReport() public method

Determine if the exception should be reported.
public shouldReport ( Exception $e ) : boolean
$e Exception
return boolean

shouldntReport() protected method

Determine if the exception is in the "do not report" list.
protected shouldntReport ( Exception $e ) : boolean
$e Exception
return boolean

Property Details

$dontReport protected_oe property

A list of the exception types that should not be reported.
protected array $dontReport
return array