class HandleErrors implements MiddlewareInterface

Properties

protected ErrorHandler $errorHandler

Methods

__construct(ErrorHandler $errorHandler)

No description

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $handler)

<p>Catch all errors that happen during further middleware execution.</p>

Details

__construct(ErrorHandler $errorHandler)

Parameters

ErrorHandler $errorHandler

ResponseInterface process(ServerRequestInterface $request, RequestHandlerInterface $handler)

<p>Catch all errors that happen during further middleware execution.</p>

Parameters

ServerRequestInterface $request
RequestHandlerInterface $handler

Return Value

ResponseInterface