You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/01/25 03:44:15 UTC
[31/50] [abbrv] lucenenet git commit: BUG:
Lucene.Net.Memory.MemoryIndex.AddField(): changed throw statement to throw
Exception rather than the original IOException
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 <sh...@shadstorhaug.com>
Authored: Wed Jan 25 06:54:29 2017 +0700
Committer: Shad Storhaug <sh...@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));