class ErrorHandler implements ErrorHandlerInterface (View source)

Methods

__construct(RunInterface|null $whoops, boolean $debug = false)

Constructor.

void
register()

Register any necessary error, exception and shutdown handlers.

void
unregister()

Unregister any registered error, exception and shutdown handlers.

ResponseInterface
getResponse(Exception $exception)

Get a response representing the specified exception.

Details

__construct(RunInterface|null $whoops, boolean $debug = false)

Constructor.

Parameters

RunInterface|null $whoops
boolean $debug

void register()

Register any necessary error, exception and shutdown handlers.

Return Value

void

void unregister()

Unregister any registered error, exception and shutdown handlers.

Return Value

void

ResponseInterface getResponse(Exception $exception)

Get a response representing the specified exception.

Parameters

Exception $exception

Return Value

ResponseInterface