jinterface hides root exception on connect

Mark Pollack mpollack@REDACTED
Mon Sep 27 17:33:09 CEST 2010


Hi,

The following catch statement in jinterface's AbstractConnection.doConnect method

      } catch (final Exception e) {
          close();
          throw new IOException("Cannot connect to peer node");
      }

Is hiding some good information making it difficult for users of my library (which uses jinterface) to diagnose connection errors.  Can you please propagate the underlying root exception when throwing the IOException.

I am using jinterface 1.5.3 as it is available in the public maven repository.

Thanks,
Mark






More information about the erlang-bugs mailing list