I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c03511b9 authored by zzz's avatar zzz
Browse files

exception causes

parent 78e7599a
No related branches found
No related tags found
No related merge requests found
...@@ -305,8 +305,9 @@ public class I2PSocketManagerFull implements I2PSocketManager { ...@@ -305,8 +305,9 @@ public class I2PSocketManagerFull implements I2PSocketManager {
I2PSocket sock = connect(peer, options); I2PSocket sock = connect(peer, options);
return new StandardSocket(sock); return new StandardSocket(sock);
} catch (I2PException i2pe) { } catch (I2PException i2pe) {
// fixme in 1.6 change to cause IOException ioe = new IOException("connect fail");
throw new IOException(i2pe.toString()); ioe.initCause(i2pe);
throw ioe;
} }
} }
......
...@@ -44,8 +44,9 @@ class StandardServerSocket extends ServerSocket { ...@@ -44,8 +44,9 @@ class StandardServerSocket extends ServerSocket {
throw new IOException("No socket"); throw new IOException("No socket");
return new StandardSocket(sock); return new StandardSocket(sock);
} catch (I2PException i2pe) { } catch (I2PException i2pe) {
// fixme in 1.6 change to cause IOException ioe = new IOException("accept fail");
throw new IOException(i2pe.toString()); ioe.initCause(i2pe);
throw ioe;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment