public static ErrorCode valueOf(int value) {
        for (ErrorCode errCode : ErrorCode.values()) {
            if (errCode.getErrCode() == value) {
                return errCode;
            }
        }
        return UNKNOWN_ERROR;
    }
Error Code class

Used to identify different types of errors
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/common/ErrorCode.java