lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/2] lucenenet git commit: don't wrap exceptions
Date Sat, 09 May 2015 18:43:47 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 792dbad3e -> 95f358e9a


don't wrap exceptions


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

Branch: refs/heads/master
Commit: 66917a600c7760b72bf0b04ef2e81ef5d9fecc79
Parents: 792dbad
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Fri May 8 11:14:04 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Fri May 8 11:14:04 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/IOUtils.cs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/66917a60/src/Lucene.Net.Core/Util/IOUtils.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/IOUtils.cs b/src/Lucene.Net.Core/Util/IOUtils.cs
index 5fd50cb..e386a32 100644
--- a/src/Lucene.Net.Core/Util/IOUtils.cs
+++ b/src/Lucene.Net.Core/Util/IOUtils.cs
@@ -428,11 +428,7 @@ namespace Lucene.Net.Util
         {
             if (th != null)
             {
-                if (th is IOException || th is InvalidOperationException)
-                {
-                    throw th;
-                }
-                throw new Exception(th.ToString(), th);
+                throw th;
             }
         }
 


Mime
View raw message