Remove a request that encountered an exception
RequestInterface $request Request to remove:
\Exception $e Exception encountered:
protected function removeErroredRequest(RequestInterface $request, \Exception $e) {
$this->exceptions[] = array(
'request' => $request,
'exception' => $e,
);
$this
->remove($request);
$request
->setState(RequestInterface::STATE_ERROR);
$this
->dispatch(self::MULTI_EXCEPTION, array(
'exception' => $e,
'all_exceptions' => $this->exceptions,
));
}