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/03/05 11:48:58 UTC

[19/50] [abbrv] lucenenet git commit: Lucene.Net.Core.Store.AlreadyClosedException: Fixed AlreadyClosedException to subclass InvalidOperationException to ensure it is caught in the right places

Lucene.Net.Core.Store.AlreadyClosedException: Fixed AlreadyClosedException to subclass InvalidOperationException to ensure it is caught in the right places


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

Branch: refs/heads/api-work
Commit: f18fd2ed3dcb6c87000e2a8673ec26249d1ea7cf
Parents: 018790f
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Mar 3 14:08:02 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Mar 5 17:08:37 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Store/AlreadyClosedException.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/f18fd2ed/src/Lucene.Net.Core/Store/AlreadyClosedException.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Store/AlreadyClosedException.cs b/src/Lucene.Net.Core/Store/AlreadyClosedException.cs
index 875fe59..e8a2837 100644
--- a/src/Lucene.Net.Core/Store/AlreadyClosedException.cs
+++ b/src/Lucene.Net.Core/Store/AlreadyClosedException.cs
@@ -27,7 +27,7 @@ namespace Lucene.Net.Store
 #if FEATURE_SERIALIZABLE
     [Serializable]
 #endif
-    public class AlreadyClosedException : System.Exception // LUCENENET TODO: Replace with ObjectDisposedException and comment out
+    public class AlreadyClosedException : InvalidOperationException // LUCENENET TODO: Replace with ObjectDisposedException and comment out (ObjectDisposedException inherits InvalidOperationException, so it should work great)
     {
         public AlreadyClosedException(string message)
             : base(message)