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