TyrantLucifer commented on code in PR #3045:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3045#discussion_r993053578


##########
seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonErrorCode.java:
##########
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.common.exception;
+
+public enum CommonErrorCode implements SeaTunnelErrorCode {
+    ENUM_ILLEGAL("Common-01", "This enum is not supported by SeaTunnel"),
+    FILE_OPERATION_ERROR("Common-02", "File operation error"),
+    JSON_OPERATION_ERROR("Common-03", "Json covert/parse operation error"),
+    REFLECT_CLASS_OPERATION_ERROR("Common-04", "Reflect class operation 
error"),
+    SERIALIZE_OPERATION_ERROR("Common-05", "Serialize class operation error"),
+    UNSUPPORTED_OPERATION("Common-06", "Unsupported operation error");

Review Comment:
   > Such a design may be more suitable for client users, e.g. http-server <-> 
app-client
   
   For some of our users it might base on SeaTunnel to build some config files 
and pull a SeaTunnel task. Most application scenarios are based on the client 
side to collect logs, clear code hints help peripheral integration framework to 
better collect information. In the actual implementation experience, clear code 
hints help better user experience, this is also our previous experience in the 
implementation of DataX to the production environment, whether it is web 
development, or data integration framework, the ultimate goal is to give users 
a better experience.



-- 
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