]> git.mxchange.org Git - addressbook-swing.git/commitdiff
exception was also renamed
authorRoland Häder <roland@mxchange.org>
Tue, 25 Jul 2017 19:18:44 +0000 (21:18 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 25 Jul 2017 19:18:55 +0000 (21:18 +0200)
src/org/mxchange/addressbook/client/console/ConsoleClient.java
src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java
src/org/mxchange/addressbook/facade/contact/ContactFacade.java

index a5f59d63d66b3e929f544833ed530aa90f3a4d73..e3bc85318e4dc8cf1919d7737538057365b68682 100644 (file)
@@ -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.");
                                }
index 74d3653cc1d83676246004085a41a78e0cec8eb0..5121bd96924780338812e11d09b75a48a3a2a55f 100644 (file)
@@ -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);
                }
index 3e6e2f44c9e6b83c6a918ac94f65719979df1b90..61d25514bf237abdf0c201b132fc6ecfef719da0 100644 (file)
@@ -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
         * <p>
         * @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