Windows JVM raises an Exception, although it does not raise a
ConnectionException.
Why don't you have two catch blocks? The first with ConnectionException and
the second one with Exception.
In the second one, check if the platform is Windows and check the error
message to see if it's the case where connection is refused.


On Tue, May 20, 2014 at 5:02 PM, Tae-Geon Um <notifications@github.com>wrote:

> In
> wake/src/main/java/com/microsoft/wake/remote/transport/netty/NettyMessagingTransport.java:
>
> >
> > -    if (link != null) {
> > -      return link;
> > -    }
> > +      }catch(Exception e){
>
> I'm not sure how to deal with this. Doesn't Windows JVM raise any
> exception so I can't catch any exception in that "try-catch" area?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Microsoft-CISL/Wake/pull/21/files#r12831615>
> .
>



-- 
Byung-Gon Chun