W3cubDocs

/Laravel 5.4

Handler

class Handler implements ExceptionHandler (View source)

Methods

void __construct(Container $container)

Create a new exception handler instance.

void report(Exception $e)

Report or log an exception.

bool shouldReport(Exception $e)

Determine if the exception should be reported.

Response render(Request $request, Exception $e)

Render an exception into a response.

void renderForConsole(OutputInterface $output, Exception $e)

Render an exception to the console.

Details

void __construct(Container $container)

Create a new exception handler instance.

Parameters

Container $container

Return Value

void

void report(Exception $e)

Report or log an exception.

Parameters

Exception $e

Return Value

void

Exceptions

Exception

bool shouldReport(Exception $e)

Determine if the exception should be reported.

Parameters

Exception $e

Return Value

bool

Response render(Request $request, Exception $e)

Render an exception into a response.

Parameters

Request $request
Exception $e

Return Value

Response

void renderForConsole(OutputInterface $output, Exception $e)

Render an exception to the console.

Parameters

OutputInterface $output
Exception $e

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Foundation/Exceptions/Handler.html