zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Olivelli (Jira)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-1235) store KeeperException messages in the Code enum
Date Fri, 06 Sep 2019 15:45:06 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Enrico Olivelli updated ZOOKEEPER-1235:
---------------------------------------
    Fix Version/s:     (was: 3.5.6)

> 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
>            Assignee: Thomas Koch
>            Priority: Major
>             Fix For: 3.6.0, 3.5.7
>
>         Attachments: ZOOKEEPER-1235.patch, ZOOKEEPER-1235.patch
>
>
> 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 was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message