Kraken\Stream\StreamSeeker::throwAndEmitException PHP Method

throwAndEmitException() protected method

Emit error event and the throws it too.
protected throwAndEmitException ( Erro\Error | Exceptio\Exception $ex ) : null
$ex Erro\Error | Exceptio\Exception
return null
    protected function throwAndEmitException($ex)
    {
        $this->emit('error', [$this, $ex]);
        throw $ex;
    }