]> git.mxchange.org Git - addressbook-swing.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Thu, 8 Jun 2017 20:43:10 +0000 (22:43 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 8 Jun 2017 20:45:24 +0000 (22:45 +0200)
- fixed copyright (no email address)

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/addressbook/client/console/ConsoleClient.java
src/org/mxchange/addressbook/client/gui/AddressbookFrame.java
src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java
src/org/mxchange/addressbook/facade/contact/ContactFacade.java

index 19d9c747ac56305df4a45288b102677331221d64..935a347aa24d02c3a3b562cd27f42d062234911e 100644 (file)
@@ -34,7 +34,7 @@ import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.UserContact;
 import org.mxchange.jcontacts.contact.gender.Gender;
 import org.mxchange.jcontacts.contact.gender.GenderUtils;
-import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException;
 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 ContactAlreadyAddedException ex) {
+                               } catch (final BusinessContactAlreadyAddedException ex) {
                                        // Already added
                                        this.outputMessage("Sie haben bereits Ihre eigenen Daten eingegeben.");
                                }
index ec47bf2da85350617d1a567d2125d8143d409209..975c03220786f15a7a4fddbefdb16c184e6fc932 100644 (file)
@@ -709,7 +709,7 @@ public class AddressbookFrame extends BaseAddressbookSystem implements ClientFra
                                        ((ContactFacade) self.getClient().getFacade()).doEnterOwnData();
                                } catch (final ContactAlreadyAddedException ex) {
                                        // Already added, log away
-                                       // TODO maybe output message here?
+                                       // @TODO maybe output message here?
                                        self.logException(ex);
                                }
                        }
index ffb36ca5125ddaa254857fb9cbfc8d488866481a..01f8be0f1c00d7beb26f8ecdb2458282ffa4f54c 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.gender.Gender;
-import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException;
 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 ContactAlreadyAddedException {
+       public void addContact (final Contact contact) throws BusinessContactAlreadyAddedException {
                // 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 ContactAlreadyAddedException {
+       public void doEnterOwnData () throws BusinessContactAlreadyAddedException {
                // Trace message
                this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
 
                // Is own contact already added?
                if (this.isOwnContactAdded()) {
                        // Don't continue here
-                       throw new ContactAlreadyAddedException();
+                       throw new BusinessContactAlreadyAddedException();
                }
 
                // 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 ContactAlreadyAddedException ex) {
+               } catch (final BusinessContactAlreadyAddedException ex) {
                        // Abort here
                        this.abortProgramWithException(ex);
                }
index bba8162bec0df265c9d76e43a02e885f38c9405d..290ebfc632fc39891c23910dba056b82b2f0a81c 100644 (file)
@@ -19,7 +19,7 @@ package org.mxchange.addressbook.facade.contact;
 import java.io.IOException;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.gender.Gender;
-import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException;
 import org.mxchange.jcore.facade.Facade;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
@@ -38,10 +38,10 @@ public interface ContactFacade extends Facade {
         * <p>
         * @param contact Contact instance to add
         * <p>
-        * @throws org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException If
+        * @throws org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException If
         * the contact is already added
         */
-       void addContact (final Contact contact) throws ContactAlreadyAddedException;
+       void addContact (final Contact contact) throws BusinessContactAlreadyAddedException;
 
        /**
         * Let the user add a new other address
@@ -90,10 +90,10 @@ public interface ContactFacade extends Facade {
        /**
         * Asks user for own data
         * <p>
-        * @throws org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException If
+        * @throws org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException If
         * own contact is already added
         */
-       void doEnterOwnData () throws ContactAlreadyAddedException;
+       void doEnterOwnData () throws BusinessContactAlreadyAddedException;
 
        /**
         * List all contacts