Constructors and Exceptions

2011-02-14 Thread Emmanuel Lecharny
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

Re: Constructors and Exceptions

2011-02-14 Thread Pierre-Arnaud Marcelot
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