directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject Re: [MINA] ConnectFuture
Date Wed, 21 Dec 2005 09:43:53 GMT
Hi Julien,

2005/12/20, Julien Vermillard <>:
> Hi
> Why does ConnectFuture.join(); don't throw the IOException when a
> connection fail ?
> I see it's  ConnectFuture.getsession(); who throw the stocked Exception
> back to the caller but in some of my code i don't want to get the
> IoSession, but I whould like to get the IOException.

That's an interesting question.  CloseFuture or WriteFuture doesn't throw
any exception at all.  That's why join() doesn't throw any exception.  Why
don't you just call getSession() and don't use the returned session?  Does
it look bad?

what we call human nature is actually human habit
PGP Key ID: 0x854B996C

View raw message