diff --git a/src/Luban.Job.Cfg/Source/DataCreators/SheetDataCreator.cs b/src/Luban.Job.Cfg/Source/DataCreators/SheetDataCreator.cs index 7d444c6..9c8ed88 100644 --- a/src/Luban.Job.Cfg/Source/DataCreators/SheetDataCreator.cs +++ b/src/Luban.Job.Cfg/Source/DataCreators/SheetDataCreator.cs @@ -382,7 +382,7 @@ namespace Luban.Job.Cfg.DataCreators } else if (row.Fields != null) { - throw new NotSupportedException(); + throw new Exception($"array 不支持 子字段. 忘记将字段设为多行模式? {row.SelfTitle.Name} => *{row.SelfTitle.Name}"); } else if (row.Elements != null) { @@ -410,7 +410,7 @@ namespace Luban.Job.Cfg.DataCreators } else if (row.Fields != null) { - throw new NotSupportedException(); + throw new Exception($"list 不支持 子字段. 忘记将字段设为多行模式? {row.SelfTitle.Name} => *{row.SelfTitle.Name}"); } else if (row.Elements != null) { @@ -438,7 +438,7 @@ namespace Luban.Job.Cfg.DataCreators } else if (row.Fields != null) { - throw new NotSupportedException(); + throw new Exception($"set 不支持 子字段"); } else if (row.Elements != null) { diff --git a/src/Luban.Job.Cfg/Source/DataSources/Excel/ExcelDataSource.cs b/src/Luban.Job.Cfg/Source/DataSources/Excel/ExcelDataSource.cs index eeb5ea6..62fd9ee 100644 --- a/src/Luban.Job.Cfg/Source/DataSources/Excel/ExcelDataSource.cs +++ b/src/Luban.Job.Cfg/Source/DataSources/Excel/ExcelDataSource.cs @@ -92,7 +92,7 @@ namespace Luban.Job.Cfg.DataSources.Excel // case 0: throw new Exception($"单例表不能为空,必须包含且只包含1个记录"); // default: throw new Exception($"单例表必须恰好包含1个记录. 但当前记录数为:{datas.Count}"); //} - throw new NotSupportedException(); + throw new Exception($"excel不支持单例读取模式"); } } }