[ 
https://issues.apache.org/jira/browse/LUCENE-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler resolved LUCENE-1264.
-----------------------------------

    Resolution: Won't Fix

This issue is quite old and no response was given to Hoss' comment. In general 
this is not an issue, as you can also always throw RuntimeExceptions. 
IOException is only listed in throws there because it is unfortunately checked 
and needed by Tokenizer as it works on java.io.Reader.

> Use of IOException in analysis component method signatures leads to poor 
> error management
> -----------------------------------------------------------------------------------------
>
>                 Key: LUCENE-1264
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1264
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/analyzers
>    Affects Versions: 2.3.1
>            Reporter: Benson Margulies
>
> Methods such as 'next' and 'reset' are defined to throw only IOException.
> IOException, as one of the older and dustier Java exceptions, lacks a 
> constructor over a 'cause' exception.
> So, if a Tokenizer (for example) uses some complex underlying facility that 
> throws arbitrary exceptions, the coder has two bad choices: wrap an 
> IOException around some string derived from the real problem, or throw an 
> unchecked wrapper.
> Please consider adding a new checked exception to the signature of these 
> methods  that implements the 'cause' pattern.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to