lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: QueryParser Rules article (Erik Hatcher)
Date Fri, 14 Nov 2003 12:56:11 GMT
On Thursday, November 13, 2003, at 06:46  PM, Tomcat Programmer wrote:
> Hopefully the dev group will consider refactoring the
> code so that when its doing the lexing it will throw
> TokenMgrException's instead of TokenMgrError's.
> Throwing Errors should be reserved for only the most
> nasty of conditions. The compiler will force you to
> catch or throw Exceptions, but not Errors. Thus, the
> developer will never see it coming when their
> application comes to a grinding halt.

I'm not sure I understand your request.  With the latest codebase you 
will only ever get a ParseException coming from either of the parse 
methods and you don't have to worry about any other unchecked 
exceptions.

Am I missing something?

	Erik


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


Mime
View raw message