]> git.mxchange.org Git - jshop-lib.git/commitdiff
Also don't throw RemoteException (but some are good for better code-style).
authorRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 06:39:40 +0000 (08:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 06:39:40 +0000 (08:39 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

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

index a96280e15966da193c41a2f0e9ebb132d97fbfac..3d5397818ee1517f6a14ac1611d588a66b9ddf97 100644 (file)
@@ -17,9 +17,9 @@
 package org.mxchange.jshopcore.model.product;
 
 import java.io.Serializable;
-import java.rmi.RemoteException;
 import java.util.Deque;
 import javax.ejb.Remote;
+import org.mxchange.jshopcore.exceptions.CannotAddProductException;
 import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
 
 /**
@@ -34,16 +34,15 @@ public interface AdminProductSessionBeanRemote extends Serializable {
         * Some "getter" for a linked list of all products
         *
         * @return All products
-        * @throws java.rmi.RemoteException If anything went wrong
         */
-       public Deque<Product> getAllProducts () throws RemoteException;
+       public Deque<Product> getAllProducts ();
 
        /**
         * Adds given product data from request to database
         *
         * @param product Product instance
-        * @throws java.rmi.RemoteException If something unexpected happened
         * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
+        * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If something unexpected happened
         */
-       public void doAdminAddProduct (final Product product) throws RemoteException, ProductTitleAlreadyUsedException;
+       public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
 }