From 9dd58aaa5bdf4271f9cb924906c9c0a7b46dbc1c Mon Sep 17 00:00:00 2001 From: Alexander Makarenko Date: Mon, 9 Mar 2015 11:22:13 +0300 Subject: [PATCH] Add SESSION_MOVED exception code Following ZooKeeper documentation this is extremely rare exception client can get but still it can get it, so it's worth adding to client --- lib/Exception.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Exception.js b/lib/Exception.js index 26a5d7f..4b0d228 100644 --- a/lib/Exception.js +++ b/lib/Exception.js @@ -30,7 +30,8 @@ var CODES = { SESSION_EXPIRED : -112, INVALID_CALLBACK : -113, INVALID_ACL : -114, - AUTH_FAILED : -115 + AUTH_FAILED : -115, + SESSION_MOVED: -118 }; /**