store KeeperException messages in the Code enum -----------------------------------------------
Key: ZOOKEEPER-1235 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1235 Project: ZooKeeper Issue Type: Sub-task Reporter: Thomas Koch Enums are just objects that can have properties. So instead of switching on the code integer, the message can be stored in the enum. OK( OK) becomes OK (Ok, "ok") getCodeMessage(Code code) just returns code.getMessage() -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira