diff --git a/src/Luban.Job.Cfg/Source/Utils/DataUtil.cs b/src/Luban.Job.Cfg/Source/Utils/DataUtil.cs index bda12f6..44e8e74 100644 --- a/src/Luban.Job.Cfg/Source/Utils/DataUtil.cs +++ b/src/Luban.Job.Cfg/Source/Utils/DataUtil.cs @@ -30,7 +30,7 @@ namespace Luban.Job.Cfg.Utils var values = SplitVectorString(x); if (values.Length != 2) { - throw new Exception($"'{x}' 不是合法vector2类型数据"); + throw new Exception($"'{x}' 涓嶆槸鍚堟硶vector2绫诲瀷鏁版嵁"); } return new DVector2(new System.Numerics.Vector2(float.Parse(values[0]), float.Parse(values[1]))); @@ -41,7 +41,7 @@ namespace Luban.Job.Cfg.Utils var values = SplitVectorString(x); if (values.Length != 3) { - throw new Exception($"'{x}' 不是合法vector3类型数据"); + throw new Exception($"'{x}' 涓嶆槸鍚堟硶vector3绫诲瀷鏁版嵁"); } return new DVector3(new System.Numerics.Vector3(float.Parse(values[0]), float.Parse(values[1]), float.Parse(values[2]))); @@ -52,7 +52,7 @@ namespace Luban.Job.Cfg.Utils var values = SplitVectorString(x); if (values.Length != 4) { - throw new Exception($"'{x}' 不是合法vector4类型数据"); + throw new Exception($"'{x}' 涓嶆槸鍚堟硶vector4绫诲瀷鏁版嵁"); } return new DVector4(new System.Numerics.Vector4(float.Parse(values[0]), float.Parse(values[1]), float.Parse(values[2]), float.Parse(values[3]))); } @@ -164,11 +164,11 @@ namespace Luban.Job.Cfg.Utils { if (key == null || text == null) { - throw new Exception("text的key或text属性不能为null"); + throw new Exception("text鐨刱ey鎴杢ext灞炴т笉鑳戒负null"); } if (key == "" && text != "") { - throw new Exception($"text key为空, 但text:'{text}'不为空"); + throw new Exception($"text key涓虹┖, 浣唗ext:'{text}'涓嶄负绌"); } } @@ -244,16 +244,16 @@ namespace Luban.Job.Cfg.Utils { if (string.IsNullOrEmpty(subType)) { - throw new Exception($"module:'{bean.Namespace}' 多态数据type不能为空"); + throw new Exception($"module:'{bean.Namespace}' 澶氭佹暟鎹畉ype涓嶈兘涓虹┖"); } DefBean defType = bean.GetHierarchyChildren().Cast().Where(c => c.Alias == subType || c.Name == subType || c.FullName == subType).FirstOrDefault(); if (defType == null) { - throw new Exception($"module:'{bean.Namespace}' type:'{subType}' 不是合法类型"); + throw new Exception($"module:'{bean.Namespace}' type:'{subType}' 涓嶆槸鍚堟硶绫诲瀷"); } if (defType.IsAbstractType) { - throw new Exception($"module:'{bean.Namespace}' type:'{subType}' 是抽象类. 不能创建实例"); + throw new Exception($"module:'{bean.Namespace}' type:'{subType}' 鏄娊璞$被. 涓嶈兘鍒涘缓瀹炰緥"); } return defType; } @@ -271,7 +271,7 @@ namespace Luban.Job.Cfg.Utils case "0": case "n": case "no": return false; - default: throw new InvalidExcelDataException($"{s} 不是 bool 类型的值 (true|1|y|yes 或 false|0|n|no)"); + default: throw new InvalidExcelDataException($"{s} 涓嶆槸 bool 绫诲瀷鐨勫 (true|1|y|yes 鎴 false|0|n|no)"); } }