Changeset 7249b64


Ignore:
Timestamp:
May 29, 2016 5:03:32 AM (4 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
5439ff2
Parents:
efcf294
Message:

Differentiate between constructor invocation failure and connection failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/client/impl/I2PSessionImpl.java

    refcf294 r7249b64  
    606606                            Object fact = ctor.newInstance(_context);
    607607                            Method createSocket = clazz.getDeclaredMethod("createSocket", String.class);
    608                             _socket = (Socket) createSocket.invoke(fact, _options.getProperty(PROP_DOMAIN_SOCKET));
     608                            try {
     609                                _socket = (Socket) createSocket.invoke(fact, _options.getProperty(PROP_DOMAIN_SOCKET));
     610                            } catch (InvocationTargetException e) {
     611                                throw new I2PSessionException("Cannot create domain socket", e);
     612                            }
    609613                        } catch (ClassNotFoundException e) {
    610614                            throw new I2PSessionException("Cannot load DomainSocketFactory", e);
Note: See TracChangeset for help on using the changeset viewer.