From 33b5df63d39350dfbc6f9d6c5d35be7dfdd98007 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Jul 2017 21:18:44 +0200 Subject: [PATCH] exception was also renamed --- .../addressbook/client/console/ConsoleClient.java | 4 ++-- .../facade/contact/AddressbookContactFacade.java | 10 +++++----- .../addressbook/facade/contact/ContactFacade.java | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/org/mxchange/addressbook/client/console/ConsoleClient.java b/src/org/mxchange/addressbook/client/console/ConsoleClient.java index a5f59d6..e3bc853 100644 --- a/src/org/mxchange/addressbook/client/console/ConsoleClient.java +++ b/src/org/mxchange/addressbook/client/console/ConsoleClient.java @@ -34,7 +34,7 @@ import org.mxchange.jcontacts.contact.Contact; import org.mxchange.jcontacts.contact.UserContact; import org.mxchange.jcontacts.contact.title.PersonalTitle; import org.mxchange.jcontacts.contact.title.PersonalTitleUtils; -import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException; +import org.mxchange.jcontactsbusiness.exceptions.BusinessDataAlreadyAddedException; import org.mxchange.jcore.application.Application; import org.mxchange.jcore.exceptions.MenuInitializationException; import org.mxchange.jcore.exceptions.UnhandledUserChoiceException; @@ -317,7 +317,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC try { // Enter/add own data manager.doEnterOwnData(); - } catch (final BusinessContactAlreadyAddedException ex) { + } catch (final BusinessDataAlreadyAddedException ex) { // Already added this.outputMessage("Sie haben bereits Ihre eigenen Daten eingegeben."); } diff --git a/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java b/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java index 74d3653..5121bd9 100644 --- a/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java +++ b/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java @@ -26,7 +26,7 @@ import java.util.List; import org.mxchange.addressbook.client.AddressbookClient; import org.mxchange.jcontacts.contact.Contact; import org.mxchange.jcontacts.contact.title.PersonalTitle; -import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException; +import org.mxchange.jcontactsbusiness.exceptions.BusinessDataAlreadyAddedException; import org.mxchange.jcore.client.Client; import org.mxchange.jcore.exceptions.UnhandledUserChoiceException; import org.mxchange.jcore.facade.BaseFacade; @@ -94,7 +94,7 @@ public class AddressbookContactFacade extends BaseFacade implements ContactFacad } @Override - public void addContact (final Contact contact) throws BusinessContactAlreadyAddedException { + public void addContact (final Contact contact) throws BusinessDataAlreadyAddedException { // Trace message this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N @@ -261,14 +261,14 @@ public class AddressbookContactFacade extends BaseFacade implements ContactFacad } @Override - public void doEnterOwnData () throws BusinessContactAlreadyAddedException { + public void doEnterOwnData () throws BusinessDataAlreadyAddedException { // Trace message this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N // Is own contact already added? if (this.isOwnContactAdded()) { // Don't continue here - throw new BusinessContactAlreadyAddedException(); + throw new BusinessDataAlreadyAddedException(); } // Get and cast client instance @@ -533,7 +533,7 @@ public class AddressbookContactFacade extends BaseFacade implements ContactFacad // Add contact to internal list this.addContact(contact); - } catch (final BusinessContactAlreadyAddedException ex) { + } catch (final BusinessDataAlreadyAddedException ex) { // Abort here this.abortProgramWithException(ex); } diff --git a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java index 3e6e2f4..61d2551 100644 --- a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java +++ b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java @@ -20,7 +20,7 @@ import java.io.IOException; import org.mxchange.jcontacts.contact.Contact; import org.mxchange.jcontacts.contact.title.PersonalTitle; import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException; -import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException; +import org.mxchange.jcontactsbusiness.exceptions.BusinessDataAlreadyAddedException; import org.mxchange.jcore.facade.Facade; import org.mxchange.jcountry.data.Country; import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; @@ -40,10 +40,10 @@ public interface ContactFacade extends Facade { * @param contact Contact instance to add *

* @throws - * org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException + * org.mxchange.jcontactsbusiness.exceptions.BusinessDataAlreadyAddedException * If the contact is already added */ - void addContact (final Contact contact) throws BusinessContactAlreadyAddedException; + void addContact (final Contact contact) throws BusinessDataAlreadyAddedException; /** * Let the user add a new other address -- 2.39.5