Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-06-21 23:11:30 +0000
committerslewis2007-06-21 23:11:30 +0000
commitcc9e7fa4af8bd895b6b4a1810b17e0b0e3535053 (patch)
tree5f69546f3bbb78367f0527b81172d793025fcc6f /providers/bundles/org.eclipse.ecf.provider.jmdns
parent187729aeeca916e161a990c2b2158db4e231b4cb (diff)
downloadorg.eclipse.ecf-cc9e7fa4af8bd895b6b4a1810b17e0b0e3535053.tar.gz
org.eclipse.ecf-cc9e7fa4af8bd895b6b4a1810b17e0b0e3535053.tar.xz
org.eclipse.ecf-cc9e7fa4af8bd895b6b4a1810b17e0b0e3535053.zip
Changed IOException to ECFException in IDiscoveryContainerAdapter.registerService.
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.jmdns')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java b/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java
index 7ac69c34c..781705b25 100644
--- a/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.jmdns/src/org/eclipse/ecf/provider/jmdns/container/JMDNSDiscoveryContainer.java
@@ -41,6 +41,7 @@ import org.eclipse.ecf.core.identity.IDCreateException;
import org.eclipse.ecf.core.identity.IDFactory;
import org.eclipse.ecf.core.identity.Namespace;
import org.eclipse.ecf.core.security.IConnectContext;
+import org.eclipse.ecf.core.util.ECFException;
import org.eclipse.ecf.core.util.Trace;
import org.eclipse.ecf.discovery.IServiceInfo;
import org.eclipse.ecf.discovery.IServiceListener;
@@ -390,8 +391,12 @@ public class JMDNSDiscoveryContainer implements IContainer,
/* (non-Javadoc)
* @see org.eclipse.ecf.discovery.IDiscoveryContainerAdapter#registerService(org.eclipse.ecf.discovery.IServiceInfo)
*/
- public void registerService(IServiceInfo serviceInfo) throws IOException {
- registerServiceWithJmDNS(serviceInfo);
+ public void registerService(IServiceInfo serviceInfo) throws ECFException {
+ try {
+ registerServiceWithJmDNS(serviceInfo);
+ } catch (IOException e) {
+ throw new ECFException("registerService",e);
+ }
}
/* (non-Javadoc)

Back to the top