From: Roland Häder Date: Tue, 25 Jul 2017 19:26:30 +0000 (+0200) Subject: Please cherry-pick X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96d8f6e7bc6bb81d4c48079e79c40a5647ddfe83;p=jfinancials-war.git Please cherry-pick - opps, wrong renaming here Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionBean.java b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionBean.java index 09d01d0d..564f224f 100644 --- a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionBean.java +++ b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionBean.java @@ -39,7 +39,7 @@ import org.mxchange.jcontacts.contact.UserContact; import org.mxchange.jcontacts.contact.title.PersonalTitle; import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent; import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent; -import org.mxchange.jcontactsbusiness.exceptions.BusinessDataNotFoundException; +import org.mxchange.jcontacts.exceptions.ContactNotFoundException; import org.mxchange.jcountry.data.Country; import org.mxchange.jfinancials.beans.BaseFinancialsController; import org.mxchange.jfinancials.beans.user.FinancialsUserWebSessionController; @@ -931,7 +931,7 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im } @Override - public Contact lookupContactById (final Long contactId) throws BusinessDataNotFoundException { + public Contact lookupContactById (final Long contactId) throws ContactNotFoundException { // Init variable Contact localContact = null; @@ -954,7 +954,7 @@ public class FinancialsContactWebSessionBean extends BaseFinancialsController im // Is it still null? if (null == localContact) { // Not visible for the current user - throw new BusinessDataNotFoundException(contactId); + throw new ContactNotFoundException(contactId); } // Copy all data to this bean diff --git a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionController.java b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionController.java index e89f6dbe..4bdf1bdc 100644 --- a/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionController.java +++ b/src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebSessionController.java @@ -22,7 +22,7 @@ import java.util.List; import javax.ejb.Local; import org.mxchange.jcontacts.contact.Contact; import org.mxchange.jcontacts.contact.title.PersonalTitle; -import org.mxchange.jcontactsbusiness.exceptions.BusinessDataNotFoundException; +import org.mxchange.jcontacts.exceptions.ContactNotFoundException; import org.mxchange.jcountry.data.Country; import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider; @@ -61,9 +61,9 @@ public interface FinancialsContactWebSessionController extends Serializable { *

* @return Contact instance *

- * @throws BusinessDataNotFoundException If the user is not found + * @throws ContactNotFoundException If the user is not found */ - Contact lookupContactById (final Long contactId) throws BusinessDataNotFoundException; + Contact lookupContactById (final Long contactId) throws ContactNotFoundException; /** * Creates an instance from all properties