]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
Added thrown exception
authorRoland Haeder <roland@mxchange.org>
Wed, 9 Sep 2015 09:28:48 +0000 (11:28 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 9 Sep 2015 09:28:48 +0000 (11:28 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java

index 7af2a19f03feff1c8c7d27f7543ca725e7a5123a..d29c45230d54175a7a229d739b2a2b16d8251960 100644 (file)
@@ -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