class Handler implements ExceptionHandler (View source)

Methods

__construct(ExceptionHandler $exceptionHandler, Debug $debug)

Handler constructor.

void
report(Exception $e)

Report or log an exception.

Response
render(Request $request, Exception $e)

Render an exception into an HTTP response.

void
renderForConsole(OutputInterface $output, Exception $e)

Render an exception to the console.

Details

__construct(ExceptionHandler $exceptionHandler, Debug $debug)

Handler constructor.

Parameters

ExceptionHandler $exceptionHandler
Debug $debug

void report(Exception $e)

Report or log an exception.

Parameters

Exception $e

Return Value

void

Response render(Request $request, Exception $e)

Render an exception into an HTTP response.

Parameters

Request $request
Exception $e

Return Value

Response

Exceptions

UnexpectedValueException

void renderForConsole(OutputInterface $output, Exception $e)

Render an exception to the console.

Parameters

OutputInterface $output
Exception $e

Return Value

void