directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject [Shared] Cursor interface Excpetions
Date Sat, 05 Jun 2010 09:57:54 GMT
-----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, ...

WDYT?


[1]
http://people.apache.org/~felixk/shared-docs/xref/org/apache/directory/shared/ldap/cursor/Cursor.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwKH6IACgkQ2lZVCB08qHFQAACeO1snM9Hb0hp9CzX9bJVerSZa
oQUAoKno/CKWngureFXd8+AaYtMu1lWg
=qqpa
-----END PGP SIGNATURE-----

Mime
View raw message