lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [67/72] [abbrv] lucenenet git commit: BUG: Changed exeption type to ArgumentException for DefaultCodecFactory, DefaultDocValuesFactory, and DefaultPostingsFormatFactory to make the TestAddIndexMissingCodec() test pass.
Date Sun, 26 Feb 2017 23:37:55 GMT
BUG: Changed exeption type to ArgumentException for DefaultCodecFactory, DefaultDocValuesFactory,
and DefaultPostingsFormatFactory to make the TestAddIndexMissingCodec() test pass.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/971b4387
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/971b4387
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/971b4387

Branch: refs/heads/api-work
Commit: 971b4387f9591afdfab8e34fe6fede61348e6101
Parents: 84ad7a3
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Feb 26 03:46:57 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Feb 27 06:18:01 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs          | 2 +-
 .../Support/Codecs/DefaultDocValuesFormatFactory.cs                | 2 +-
 src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/971b4387/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs b/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
index db18400..c1cbd6e 100644
--- a/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/DefaultCodecFactory.cs
@@ -118,7 +118,7 @@ namespace Lucene.Net.Codecs
             m_codecNameToTypeMap.TryGetValue(name, out codecType);
             if (codecType == null)
             {
-                throw new InvalidOperationException(string.Format("Codec '{0}' cannot be
loaded. If the codec is not " +
+                throw new ArgumentException(string.Format("Codec '{0}' cannot be loaded.
If the codec is not " +
                     "in a Lucene.Net assembly, you must subclass DefaultCodecFactory and
call ScanForCodecs() with the " + 
                     "target assembly from the subclass constructor.", name));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/971b4387/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs b/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs
index 0835b56..772026c 100644
--- a/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/DefaultDocValuesFormatFactory.cs
@@ -118,7 +118,7 @@ namespace Lucene.Net.Codecs
             m_docValuesFormatNameToTypeMap.TryGetValue(name, out codecType);
             if (codecType == null)
             {
-                throw new InvalidOperationException(string.Format("DocValuesFormat '{0}'
cannot be loaded. If the format is not " +
+                throw new ArgumentException(string.Format("DocValuesFormat '{0}' cannot be
loaded. If the format is not " +
                     "in a Lucene.Net assembly, you must subclass DefaultDocValuesFormatFactory
and call ScanForDocValuesFormats() with the " +
                     "target assembly from the subclass constructor.", name));
             }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/971b4387/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs b/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs
index 89dd47c..d9e0511 100644
--- a/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs
+++ b/src/Lucene.Net.Core/Support/Codecs/DefaultPostingsFormatFactory.cs
@@ -118,7 +118,7 @@ namespace Lucene.Net.Codecs
             m_postingsFormatNameToTypeMap.TryGetValue(name, out codecType);
             if (codecType == null)
             {
-                throw new InvalidOperationException(string.Format("PostingsFormat '{0}' cannot
be loaded. If the format is not " +
+                throw new ArgumentException(string.Format("PostingsFormat '{0}' cannot be
loaded. If the format is not " +
                     "in a Lucene.Net assembly, you must subclass DefaultPostingsFormatFactory
and call ScanForPostingsFormats() with the " +
                     "target assembly from the subclass constructor.", name));
             }


Mime
View raw message