class ExceptionHandler implements ExceptionHandler

Methods

__construct(LoggerInterface $logger)

No description

void
report(Throwable $e)

<p>Report or log an exception.</p>

Response
render(Request $request, Throwable $e)

<p>Render an exception into an HTTP response.</p>

void
renderForConsole(OutputInterface $output, Throwable $e)

<p>Render an exception to the console.</p>

bool
shouldReport(Throwable $e)

<p>Determine if the exception should be reported.</p>

Details

__construct(LoggerInterface $logger)

Parameters

LoggerInterface $logger

void report(Throwable $e)

<p>Report or log an exception.</p>

Parameters

Throwable $e

Return Value

void

Response render(Request $request, Throwable $e)

<p>Render an exception into an HTTP response.</p>

Parameters

Request $request
Throwable $e

Return Value

Response

void renderForConsole(OutputInterface $output, Throwable $e)

<p>Render an exception to the console.</p>

Parameters

OutputInterface $output
Throwable $e

Return Value

void

bool shouldReport(Throwable $e)

<p>Determine if the exception should be reported.</p>

Parameters

Throwable $e

Return Value

bool