directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: [Shared] Cursor interface Excpetions
Date Sat, 05 Jun 2010 10:02:31 GMT
On 6/5/10 11:57 AM, Felix Knecht wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The Cursor interface [1] throws almost for each method an 'Exception'. I
> suggest to make this less generic and throw either the (from javadoc)
> "UnsupportedOperationException" or in analogy to the Iterator a
> "NoSuchElementException" for methods like before,after,last,first, ...
>    

I saw that while I was propagating the LdapException through the server.

IMO, we should define a base CursorException class, and derive some more 
specific exception like the one you suggest.

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.nextury.com



Mime
View raw message