From 5165330b1a08c748853c1bb14ee951dd71692fbb Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 14 Sep 2015 08:39:40 +0200 Subject: [PATCH] =?utf8?q?Also=20don't=20throw=20RemoteException=20(but=20?= =?utf8?q?some=20are=20good=20for=20better=20code-style).=20Signed-off-by:?= =?utf8?q?Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../model/product/AdminProductSessionBeanRemote.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; } -- 2.39.2