You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Brian Baynes (JIRA)" <ji...@apache.org> on 2017/12/13 18:05:00 UTC

[jira] [Created] (GEODE-4090) Use an enum for Error.errorCode, rather than an int32

Brian Baynes created GEODE-4090:
-----------------------------------

             Summary: Use an enum for Error.errorCode, rather than an int32
                 Key: GEODE-4090
                 URL: https://issues.apache.org/jira/browse/GEODE-4090
             Project: Geode
          Issue Type: New Feature
          Components: client/server
            Reporter: Brian Baynes


Currently, the error codes in the new protocol are returned as integers and are documented on the wiki in
https://cwiki.apache.org/confluence/display/GEODE/Error+Codes and in the code in ProtocolErrorCodes.
Protobuf has support for enums, we should use an enum instead of an int32 for the error code so that the list of possible errors is part of the protobuf specification. This will make it clearer to the user what each error code means and will prevent them from having to put the constants in their own code.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)