WIP
[jSite2.git] / src / net / pterodactylus / jsite / core / Core.java
index 0bf2cca..f04bb40 100644 (file)
@@ -19,6 +19,7 @@
 
 package net.pterodactylus.jsite.core;
 
+import java.net.UnknownHostException;
 import java.util.List;
 
 /**
@@ -50,8 +51,10 @@ public interface Core {
         * 
         * @param node
         *            The node to add
+        * @throws UnknownHostException
+        *             if the hostname of the node can not be resolved
         */
-       public void addNode(Node node);
+       public void addNode(Node node) throws UnknownHostException;
 
        /**
         * Removes the given node from the core.
@@ -104,4 +107,4 @@ public interface Core {
         */
        public void disconnectFromNode(Node node);
 
-}
\ No newline at end of file
+}