directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre-Arnaud Marcelot ...@marcelot.net>
Subject Re: Constructors and Exceptions
Date Mon, 14 Feb 2011 17:58:41 GMT
Hi Emmanuel,

I think it makes perfectly sense in the particular case of a DN.

Regards,
Pierre-Arnaud
On lundi 14 février 2011 at 18:51, Emmanuel Lecharny wrote: 
> Hi guys,
> 
> this is not the first time this question hits the mailing list, but I 
> don't think we have stated something definitive in this area.
> 
> Is having a constructor throwing a checked exception a code smell ?
> 
> Something like :
>  public Dn(String) throws LdapInvalidDnException
> 
> is acceptable, or should it throw an unchecked exception ?
> 
> -- 
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
> 

Mime
View raw message