You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Hao Zhong (Jira)" <ji...@apache.org> on 2020/03/27 09:03:00 UTC
[jira] [Created] (LUCENE-9296) Throwing EOFException when reading
past eof
Hao Zhong created LUCENE-9296:
---------------------------------
Summary: Throwing EOFException when reading past eof
Key: LUCENE-9296
URL: https://issues.apache.org/jira/browse/LUCENE-9296
Project: Lucene - Core
Issue Type: Bug
Reporter: Hao Zhong
When reading past eof, lucene can throw three types of exceptions.
org.apache.lucene.store.BufferedIndexInput#readBytes throws EOFException
org.apache.lucene.codecs.compressing.CompressingTermVectorsReader.TVPostingsEnum#nextPosition throws IllegalStateException
org.apache.lucene.queryparser.classic.FastCharStream#refill throws IOException
When I implement my code, I have to handle three types of exceptions. Can the exceptions be made consistent? I feel that EOFException is the most reasonable exception.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org