From: Roland Haeder Date: Wed, 9 Sep 2015 09:24:30 +0000 (+0200) Subject: added thrown exception X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=600f451a34a7fa2044fe2aea2b71d5601241f942;p=jshop-lib.git added thrown exception Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java index a3243bd..69af39a 100644 --- a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java @@ -20,6 +20,7 @@ import java.io.Serializable; import java.rmi.RemoteException; import java.util.Deque; import javax.ejb.Remote; +import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; /** * A remote-call interface for the shop @@ -34,9 +35,10 @@ public interface CategorySessionBeanRemote extends Serializable { * admin area. * * @param category Category instance + * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given category title is already used * @throws java.rmi.RemoteException If anything went wrong */ - public void doAdminAddCategory (final Category category) throws RemoteException; + public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, RemoteException; /** * Some "getter" for a linked list of all categories