From: Roland Haeder Date: Mon, 14 Sep 2015 06:39:40 +0000 (+0200) Subject: Also don't throw RemoteException (but some are good for better code-style). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5165330b1a08c748853c1bb14ee951dd71692fbb;p=jproduct-lib.git Also don't throw RemoteException (but some are good for better code-style). Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java index a96280e..3d53978 100644 --- a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java @@ -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 getAllProducts () throws RemoteException; + public Deque 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; }