提交 0cbd1efc 编写于 作者: P PRitchie

Changed use of SystemException to InvalidOperationException to avoid code analysis warnings

上级 ce86fa77
......@@ -122,7 +122,7 @@ private static Document[] GetDocuments(string[] sources, string language, ParseO
if (sources.Length != documents.Length)
{
throw new SystemException("Amount of sources did not match amount of Documents created");
throw new InvalidOperationException("Amount of sources did not match amount of Documents created");
}
return documents;
......
......@@ -116,7 +116,7 @@ private static Document[] GetDocuments(string[] sources, string language)
if (sources.Length != documents.Length)
{
throw new SystemException("Amount of sources did not match amount of Documents created");
throw new InvalidOperationException("Amount of sources did not match amount of Documents created");
}
return documents;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册