From 4ff1a54eedd85115875a5817b0be37907f6ceb65 Mon Sep 17 00:00:00 2001 From: walon Date: Sun, 24 Oct 2021 11:06:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=A4=9A=E8=A1=8C=E5=AD=97=E6=AE=B5=E6=9C=AA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AEmulti=5Frows=E5=B1=9E=E6=80=A7=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Job.Cfg/Source/DataCreators/SheetDataCreator.cs | 6 +++--- .../Source/DataSources/Excel/ExcelDataSource.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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不支持单例读取模式"); } } }