lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@lucene.com>
Subject Re: Why does BooleanQuery$TooManyClauses extend RuntimeException?
Date Wed, 26 Nov 2003 22:08:50 GMT
Scott ganyo wrote:
> I have always been rather troubled by this Exception.  The truth is that 
> by imposing a limitation where there was none before, this change is 
> already an incompatible change to the existing API.  Hiding the fact 
> that the original contract has been broken by using a RuntimeException 
> to slip past the compiler seems rather wrong to me.  At least if the 
> Exception was explicit, users could choose to address it or ignore it 
> immediately when they compile... rather than being bit by it 
> inadvertently at runtime.

So what do you propose?

Doug


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


Mime
View raw message