lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message