internal static void DeletePath(IZooKeeperClient zkClient, string path) { try { zkClient.Delete(path); } catch (KeeperException.NoNodeException) { Logger.InfoFormat(CultureInfo.CurrentCulture, "{0} deleted during connection loss; this is ok", path); } }
internal static void DeletePath(IZooKeeperClient zkClient, string path) { try { zkClient.Delete(path); } catch (KeeperException e) { if (e.ErrorCode == KeeperException.Code.NONODE) { Logger.InfoFormat("{0} deleted during connection loss; this is ok", path); } else { throw; } } }
internal static void DeletePath(IZooKeeperClient zkClient, string path) { try { zkClient.Delete(path); } catch (KeeperException.NoNodeException) { Logger.InfoFormat(CultureInfo.CurrentCulture, "{0} deleted during connection loss; this is ok", path); } }
internal static void DeletePath(IZooKeeperClient zkClient, string path) { try { zkClient.Delete(path); } catch (KeeperException e) { if (e.ErrorCode == KeeperException.Code.NONODE) Logger.InfoFormat("{0} deleted during connection loss; this is ok", path); else throw; } }