src/bTd/SNP/Client/Client.php
private function error(): void
    {
        $code = socket_last_error($this->socket);
        $msg  = socket_strerror($code);
        throw new \RuntimeException($msg, $code);

    }
private function error(): void
    {
        $code = socket_last_error($this->socket);
        $msg  = socket_strerror($code);
        throw new \RuntimeException($msg, $code);

    }
private function error ( ) : void { $ code = socket_last_error ( $ this -> socket ) ; $ msg = socket_strerror ( $ code ) ; throw new \ RuntimeException ( $ msg , $ code ) ; }
Compose RuntimeException from socket error and throws it.

@return void
@throws \RuntimeException
Compose RuntimeException from socket error and throws it .