directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: [Shared] Cursor interface Excpetions
Date Sat, 05 Jun 2010 10:18:00 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/05/10 12:02, Emmanuel Lecharny wrote:
> 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.

What would be the benefit of the Exception inflation instead of using
already existing ones where it logically makes sense?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwKJFgACgkQ2lZVCB08qHFQgACgjaFHOCO4jOWEXUyq4a2ZCXvP
tO8An07xdjFYoC628N38O3puiIWSyfGy
=MYJd
-----END PGP SIGNATURE-----

Mime
View raw message