interface ExceptionHandler

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.

void
afterResponse(callable $callback)

Register a callback to be called after an HTTP error response is rendered.

void
array()

<array-key, mixed> buildContextForException(\Throwable $e)

bool
isReporting(Throwable $e)

No description

bool
shouldStopRetries(Throwable $e)

No description

Details

at line 24
void report(Throwable $e)

Report or log an exception.

Parameters

Throwable $e

Return Value

void

Exceptions

Throwable

at line 29
bool shouldReport(Throwable $e)

Determine if the exception should be reported.

Parameters

Throwable $e

Return Value

bool

at line 36
Response render(Request $request, Throwable $e)

Render an exception into an HTTP response.

Parameters

Request $request
Throwable $e

Return Value

Response

Exceptions

Throwable

at line 41
void renderForConsole(OutputInterface $output, Throwable $e)

Render an exception to the console.

Parameters

OutputInterface $output
Throwable $e

Return Value

void

at line 46
void afterResponse(callable $callback)

Register a callback to be called after an HTTP error response is rendered.

Parameters

callable $callback

Return Value

void

at line 17
void array()

<array-key, mixed> buildContextForException(\Throwable $e)

Return Value

void

at line 17
bool isReporting(Throwable $e)

No description

Parameters

Throwable $e

Return Value

bool

at line 17
bool shouldStopRetries(Throwable $e)

No description

Parameters

Throwable $e

Return Value

bool