forked from I2P_Developers/i2p.i2p
exception causes
This commit is contained in:
@ -305,8 +305,9 @@ public class I2PSocketManagerFull implements I2PSocketManager {
|
||||
I2PSocket sock = connect(peer, options);
|
||||
return new StandardSocket(sock);
|
||||
} catch (I2PException i2pe) {
|
||||
// fixme in 1.6 change to cause
|
||||
throw new IOException(i2pe.toString());
|
||||
IOException ioe = new IOException("connect fail");
|
||||
ioe.initCause(i2pe);
|
||||
throw ioe;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -44,8 +44,9 @@ class StandardServerSocket extends ServerSocket {
|
||||
throw new IOException("No socket");
|
||||
return new StandardSocket(sock);
|
||||
} catch (I2PException i2pe) {
|
||||
// fixme in 1.6 change to cause
|
||||
throw new IOException(i2pe.toString());
|
||||
IOException ioe = new IOException("accept fail");
|
||||
ioe.initCause(i2pe);
|
||||
throw ioe;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user