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 <[email protected]> Authored: Fri Mar 3 14:08:02 2017 +0700 Committer: Shad Storhaug <[email protected]> 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)
