interface ErrorHandlerInterface (View source)

Methods

void
register()

Register any necessary error, exception and shutdown handlers.

void
unregister()

Unregister any registered error, exception and shutdown handlers.

ResponseInterface
getResponse(RequestInterface $request, Exception $exception)

Get a response representing the specified exception.

Details

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(RequestInterface $request, Exception $exception)

Get a response representing the specified exception.

Parameters

RequestInterface $request
Exception $exception

Return Value

ResponseInterface