class ExceptionHandler implements ExceptionHandler

Methods

__construct(LoggerInterface $logger)

No description

void
report(Exception $e)

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

Response
render(Request $request, Exception $e)

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

void
renderForConsole(OutputInterface $output, Exception $e)

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

bool
shouldReport(Exception $e)

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

Details

__construct(LoggerInterface $logger)

Parameters

LoggerInterface $logger

void report(Exception $e)

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

Parameters

Exception $e

Return Value

void

Response render(Request $request, Exception $e)

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

Parameters

Request $request
Exception $e

Return Value

Response

void renderForConsole(OutputInterface $output, Exception $e)

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

Parameters

OutputInterface $output
Exception $e

Return Value

void

bool shouldReport(Exception $e)

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

Parameters

Exception $e

Return Value

bool