ExceptionHandler

interface ExceptionHandler (View source)

Methods

void report(Throwable $e)

Report or log an exception.

bool shouldReport(Throwable $e)

Determine if the exception should be reported.

Response render(Request $request, Throwable $e)

Render an exception into an HTTP response.

void renderForConsole(OutputInterface $output, Throwable $e)

Render an exception to the console.

Details

void report(Throwable $e)

Report or log an exception.

Parameters

Throwable $e

Return Value

void

Exceptions

Throwable

bool shouldReport(Throwable $e)

Determine if the exception should be reported.

Parameters

Throwable $e

Return Value

bool

Response render(Request $request, Throwable $e)

Render an exception into an HTTP response.

Parameters

Request $request
Throwable $e

Return Value

Response

Exceptions

Throwable

void renderForConsole(OutputInterface $output, Throwable $e)

Render an exception to the console.

Parameters

OutputInterface $output
Throwable $e

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Contracts/Debug/ExceptionHandler.html