Clue\React\Buzz\Io\Transaction::onError PHP Method

onError() public method

public onError ( Exception $error, Psr\Http\Message\RequestInterface $request )
$error Exception
$request Psr\Http\Message\RequestInterface
    public function onError(Exception $error, RequestInterface $request)
    {
        $this->progress('error', array($error, $request));
        throw $error;
    }