jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Database connections & queries
Date Mon, 27 Aug 2007 09:37:50 GMT
Jukka Zitting wrote:
> On 8/22/07, Martijn Hendriks <martijnh@gx.nl> wrote:
>> The current implementation of the LazyScoreNodeIterator is such to
>> ignore all RepositoryExceptions that might be thrown while loading the
>> nodes in the result set, as required by the javax.jcr.NodeIterator spec.
> 
> I think the correct behaviour would be for the node iterator to throw
> an exception (unfortunately I guess only a RuntimeException would work
> here) instead of ignoring such internal errors.

I agree.

We could change the behaviour of the iterator to throw a NoSuchElementException. 
That's an exception already declared on nextNode().

Would that work for you Martijn?

regards
  marcel

Mime
View raw message