You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@directory.apache.org by Emmanuel Lecharny <el...@gmail.com> on 2010/03/18 12:13:27 UTC

DN and Exceptions

Hi,

i was studying the exceptions, and regarding DN, I think we could be a 
bit more specific. Right now, we are just throwing a 
LdapInvalidDnException, when we could have more than one kind of error :
- The normalization could fail
- The DN could be invalid
- An operation (add, etc) could be invalid

What abbot defining a DnException root, and three different exceptions 
like :
- DnNormalizationException
- DnParsingException
- DnOperationException
  all of them extending the DnException.

Does it make sense to you ?

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com