]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java
Introduced new exceptions
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / product / ProductSessionBeanRemote.java
index ea62d54547c0a519c6287642a1566db694ee21b7..da1aea38b63183e1bb8ff58c99d9386218dc91f1 100644 (file)
@@ -19,6 +19,7 @@ package org.mxchange.jshopcore.model.product;
 import java.io.Serializable;
 import java.util.Deque;
 import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.CannotAddProductException;
 import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
 
 /**
@@ -35,8 +36,9 @@ public interface ProductSessionBeanRemote extends Serializable {
         *
         * @param product Product instance to add
         * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
+        * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If the product cannot be added
         */
-       public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException;
+       public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
 
        /**
         * Some "getter" for all products. This method is typically used in admin