class ExceptionHandler implements ExceptionHandler

Methods

__construct(LoggerInterface $logger)

No description

void
report(Throwable $e)

Report or log an exception.

never
render($request, Throwable $e)

Render an exception into an HTTP response.

void
renderForConsole(OutputInterface $output, Throwable $e)

Render an exception to the console.

bool
shouldReport(Throwable $e)

Determine if the exception should be reported.

Details

__construct(LoggerInterface $logger)

Parameters

LoggerInterface $logger

void report(Throwable $e)

Report or log an exception.

Parameters

Throwable $e

Return Value

void

never render($request, Throwable $e)

Render an exception into an HTTP response.

Not applicable in a queue context — re-throw so the worker can handle it.

Parameters

$request
Throwable $e

Return Value

never

void renderForConsole(OutputInterface $output, Throwable $e)

Render an exception to the console.

Parameters

OutputInterface $output
Throwable $e

Return Value

void

bool shouldReport(Throwable $e)

Determine if the exception should be reported.

Parameters

Throwable $e

Return Value

bool