Workerman\Connection\AsyncTcpConnection::emitError PHP Метод

emitError() защищенный Метод

Try to emit onError callback.
protected emitError ( integer $code, string $msg ) : void
$code integer
$msg string
Результат void
    protected function emitError($code, $msg)
    {
        $this->_status = self::STATUS_CLOSING;
        if ($this->onError) {
            try {
                call_user_func($this->onError, $this, $code, $msg);
            } catch (\Exception $e) {
                Worker::log($e);
                exit(250);
            } catch (\Error $e) {
                Worker::log($e);
                exit(250);
            }
        }
    }