From 0ddeffce49dd91ae0e665427ffbbf131a72c9013 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 9 Sep 2015 11:28:48 +0200 Subject: [PATCH] =?utf8?q?Added=20thrown=20exception=20Signed-off-by:Rolan?= =?utf8?q?d=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../jshopcore/model/product/ProductSessionBeanRemote.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5