directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <>
Subject Should the BIND throw an Exception ?
Date Tue, 01 Jun 2010 21:35:42 GMT
Hi guys,

long time, no see ... Lots of side work going on, but still progressing 
on the API.

I have a question though : should the LdapConnection.bind()operation 
throw an exception, or not ?

Currently we have a version that returns a BindResponse, which is 
convenient but a bit painful if you have got an error, as you have to 
check the response before using the connection.

Wouldn't it be better to just throw an LdapException, containing the 
Bindresponse elements, à la JNDI ?

wdyt ?

Emmanuel Lécharny

View raw message