Kraken\Network\Socket\SocketServer::handleError PHP Method

handleError() public method

Handler triggered when an error has occured during doing operation on existing connection.
public handleError ( Kraken\Ipc\Socket\SocketInterface $socket, Erro\Error | Exceptio\Exception $ex )
$socket Kraken\Ipc\Socket\SocketInterface
$ex Erro\Error | Exceptio\Exception
    public function handleError($socket, $ex)
    {
        try {
            $this->component->handleError($socket->conn, $ex);
        } catch (Error $ex) {
            $this->close($socket);
        } catch (Exception $ex) {
            $this->close($socket);
        }
    }