make key generation throw exceptions in case of errors
[jSite2.git] / src / net / pterodactylus / jsite / core / Core.java
index 2815e38..d2a5e10 100644 (file)
@@ -116,11 +116,12 @@ public interface Core {
         * 
         * @param projectName
         *            The name of the project
-        * @return A newly created project, or <code>null</code> if key generation
-        *         failed
+        * @return A newly created project
         * @throws IOException
         *             if an I/O error occured communicating with the node
+        * @throws NoNodeException
+        *             if no node is configured
         */
-       public Project addProject(String projectName) throws IOException;
+       public Project createProject(String projectName) throws IOException, NoNodeException;
 
 }