You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/10/12 06:29:46 UTC

[GitHub] [incubator-seatunnel] hailin0 commented on a diff in pull request #3045: [Improve][Core][Exceptiom Management] Add Exception Management API

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


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



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org