From: Roland Haeder Date: Wed, 13 Apr 2016 16:38:16 +0000 (+0200) Subject: This business method throws an exception if the mobile provider has already been... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3c3e933d9b0fc884e0eadf10ea68cf00a50adc20;p=jphone-lib.git This business method throws an exception if the mobile provider has already been added. If this method throws it, it means that a possible controller didn't take care of it. --- diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index 7a1726a..b880b87 100644 Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ diff --git a/src/org/mxchange/jphone/phonenumbers/mobileprovider/AdminMobileProviderSingletonBeanRemote.java b/src/org/mxchange/jphone/phonenumbers/mobileprovider/AdminMobileProviderSingletonBeanRemote.java index d16d0b9..b80a84c 100644 --- a/src/org/mxchange/jphone/phonenumbers/mobileprovider/AdminMobileProviderSingletonBeanRemote.java +++ b/src/org/mxchange/jphone/phonenumbers/mobileprovider/AdminMobileProviderSingletonBeanRemote.java @@ -18,6 +18,7 @@ package org.mxchange.jphone.phonenumbers.mobileprovider; import java.io.Serializable; import javax.ejb.Remote; +import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException; /** * A remote interface for mobile provider data retrieval for administrative @@ -36,7 +37,9 @@ public interface AdminMobileProviderSingletonBeanRemote extends Serializable { * @param mobileProvider Mobile provider instance *

* @return Updated instance + *

+ * @throws org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException Thrown if the mobile provider is already added */ - MobileProvider addMobileProvider (final MobileProvider mobileProvider); + MobileProvider addMobileProvider (final MobileProvider mobileProvider) throws MobileProviderAlreadyAddedException; }