directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Vermillard <jvermill...@archean.fr>
Subject Re: [MINA] ConnectFuture
Date Thu, 22 Dec 2005 08:58:29 GMT
Le mercredi 21 décembre 2005 à 18:43 +0900, Trustin Lee a écrit :
> Hi Julien,
> 
> 2005/12/20, Julien Vermillard <jvermillard@archean.fr>:
>         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? 
> 
A bit, but I agree I'm a bit picky ;)

It's not a big issue anyway

Julien


Mime
View raw message