[jcifs] SmbException Supercedes boolean?

Michael B. Allen mballen at erols.com
Tue Oct 30 07:19:48 EST 2001

Ok. We'll return void then.

On Mon, Oct 29, 2001 at 09:39:25AM -0800, Rob Wygand wrote:
> Mike,
> I recently encountered this, and I think it's best to return void.  We 
> had some functions that returned boolean, but always threw exceptions on 
> errors, and what we found was that some people caught the exceptions and 
> did nothing with them, only using the return value of the function. 
> This, obviously, caused confusion and errors. It's just a much clearer 
> contract when void is returned.
> rjw

May The Source be with you.

More information about the jcifs mailing list