]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java
Introduced new exceptions
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / category / CategorySessionBeanRemote.java
index f4b654389ad9e801b9eceee7ed9b9bf5ac2f428d..875a094d1fc79a6107a576ed5b321fe11e794544 100644 (file)
@@ -19,6 +19,7 @@ package org.mxchange.jshopcore.model.category;
 import java.io.Serializable;
 import java.util.Deque;
 import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.CannotAddCategoryException;
 import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
 
 /**
@@ -35,8 +36,9 @@ public interface CategorySessionBeanRemote extends Serializable {
         *
         * @param category Category instance
         * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given category title is already used
+        * @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If the category cannot be added
         */
-       public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException;
+       public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
 
        /**
         * Some "getter" for a linked list of all categories