lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [31/50] [abbrv] lucenenet git commit: BUG: Lucene.Net.Memory.MemoryIndex.AddField(): changed throw statement to throw Exception rather than the original IOException
Date Wed, 25 Jan 2017 03:44:15 GMT
BUG: Lucene.Net.Memory.MemoryIndex.AddField(): changed throw statement to throw Exception rather
than the original IOException


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

Branch: refs/heads/api-work
Commit: c56db65ef82bffdf133efe2f0ece48b680e14cbb
Parents: 994233c
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Jan 25 06:54:29 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Jan 25 09:34:48 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Memory/MemoryIndex.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c56db65e/src/Lucene.Net.Memory/MemoryIndex.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Memory/MemoryIndex.cs b/src/Lucene.Net.Memory/MemoryIndex.cs
index 11b0e58..45635da 100644
--- a/src/Lucene.Net.Memory/MemoryIndex.cs
+++ b/src/Lucene.Net.Memory/MemoryIndex.cs
@@ -253,7 +253,7 @@ namespace Lucene.Net.Index.Memory
             }
             catch (IOException ex)
             {
-                throw;
+                throw new Exception(ex.Message, ex);
             }
 
             AddField(fieldName, stream, 1.0f, analyzer.GetPositionIncrementGap(fieldName),
analyzer.GetOffsetGap(fieldName));


Mime
View raw message