From: Roland Haeder Date: Wed, 9 Sep 2015 09:28:48 +0000 (+0200) Subject: Added thrown exception X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ddeffce49dd91ae0e665427ffbbf131a72c9013;p=jshop-lib.git Added thrown exception Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java index 7af2a19..d29c452 100644 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.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.ProductTitleAlreadyUsedException; /** * An interface for non-admin purposes @@ -32,9 +33,11 @@ public interface ProductSessionBeanRemote extends Serializable { /** * Adds given product to database. This method is typically used in admin * area. + * * @param product Product instance to add + * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used */ - public void doAdminAddProduct (final Product product); + public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException; /** * Some "getter" for all products. This method is typically used in admin