ibessonov commented on code in PR #5047:
URL: https://github.com/apache/ignite-3/pull/5047#discussion_r1919723547


##########
modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java:
##########
@@ -654,4 +654,14 @@ public static class Marshalling {
         /** Unmarshalling error. */
         public static final int UNMARSHALLING_ERR = 
MARSHALLING_ERR_GROUP.registerErrorCode((short) 3);
     }
+
+    /** REST service error group. */
+    @ErrorCodeGroup
+    public static class Rest {
+        /** REST service error group. */
+        public static final ErrorGroup REST_ERR_GROUP = registerGroup("REST", 
(short) 23);
+
+        /** Cluster has not yet been initialized or the node is in the process 
of stopping. */
+        public static final int CLUSTER_NOT_INIT_ERR = 
REST_ERR_GROUP.registerErrorCode((short) 1);

Review Comment:
   Why didn't you use already existing 
`org.apache.ignite.lang.ErrorGroups.Embedded#CLUSTER_NOT_INITIALIZED_ERR`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to