summaryrefslogtreecommitdiff
path: root/jurt/com/sun/star/lib/connections/socket/socketConnector.java
diff options
context:
space:
mode:
Diffstat (limited to 'jurt/com/sun/star/lib/connections/socket/socketConnector.java')
-rw-r--r--jurt/com/sun/star/lib/connections/socket/socketConnector.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/jurt/com/sun/star/lib/connections/socket/socketConnector.java b/jurt/com/sun/star/lib/connections/socket/socketConnector.java
index ce76eaa4723c..a0c49370c6b2 100644
--- a/jurt/com/sun/star/lib/connections/socket/socketConnector.java
+++ b/jurt/com/sun/star/lib/connections/socket/socketConnector.java
@@ -26,6 +26,7 @@ import com.sun.star.connection.XConnector;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XSingleServiceFactory;
import com.sun.star.registry.XRegistryKey;
+
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
@@ -113,7 +114,7 @@ public final class socketConnector implements XConnector {
try {
desc = new ConnectionDescriptor(connectionDescription);
} catch (com.sun.star.lang.IllegalArgumentException e) {
- throw new ConnectionSetupException(e.toString());
+ throw new ConnectionSetupException(e);
}
if (desc.getHost() == null)
@@ -127,7 +128,7 @@ public final class socketConnector implements XConnector {
try {
adr = InetAddress.getAllByName(desc.getHost());
} catch (UnknownHostException e) {
- throw new ConnectionSetupException(e.toString());
+ throw new ConnectionSetupException(e);
}
Socket socket = null;
for (int i = 0; i < adr.length; ++i) {
@@ -136,7 +137,7 @@ public final class socketConnector implements XConnector {
break;
} catch (IOException e) {
if (i == adr.length - 1)
- throw new NoConnectException(e.toString());
+ throw new NoConnectException(e);
}
}
XConnection con;
@@ -146,7 +147,7 @@ public final class socketConnector implements XConnector {
con = new SocketConnection(connectionDescription, socket);
} catch (IOException e) {
- throw new NoConnectException(e.toString());
+ throw new NoConnectException(e);
}
connected = true;
return con;