NightOwl888 opened a new issue, #1175: URL: https://github.com/apache/lucenenet/issues/1175
### Is there an existing issue for this? - [x] I have searched the existing issues ### Task description The `Lucene.Net.Replicator.IndexInputStream` currently uses inconsistent exception types. While the original implementation (which was named `IndexInputInputStream`) didn't throw any exceptions, it was based on a read-only `InputStream`, so it is sensible to throw when the user attempts to write. However, to be consistent with .NET conventions it should throw `NotSupportedException` instead of `InvalidOperationException` or `InvalidCastException`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org