]> git.mxchange.org Git - addressbook-swing.git/commitdiff
Opps, wrong exception thrown
authorRoland Häder <roland@mxchange.org>
Sat, 15 Jul 2017 17:43:03 +0000 (19:43 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 15 Jul 2017 17:43:03 +0000 (19:43 +0200)
src/org/mxchange/addressbook/facade/contact/ContactFacade.java

index 894bfc2bdb32794c8069014eee4d303c4825bc2a..3e6e2f44c9e6b83c6a918ac94f65719979df1b90 100644 (file)
@@ -19,12 +19,13 @@ package org.mxchange.addressbook.facade.contact;
 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.jcore.facade.Facade;
 import org.mxchange.jcountry.data.Country;
-import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 
 /**
  * An interface for addressbook contact manager
@@ -38,8 +39,9 @@ public interface ContactFacade extends Facade {
         * <p>
         * @param contact Contact instance to add
         * <p>
-        * @throws org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException If
-        * the contact is already added
+        * @throws
+        * org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException
+        * If the contact is already added
         */
        void addContact (final Contact contact) throws BusinessContactAlreadyAddedException;
 
@@ -90,10 +92,9 @@ public interface ContactFacade extends Facade {
        /**
         * Asks user for own data
         * <p>
-        * @throws org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException If
-        * own contact is already added
+        * @throws ContactAlreadyAddedException If own contact is already added
         */
-       void doEnterOwnData () throws BusinessContactAlreadyAddedException;
+       void doEnterOwnData () throws ContactAlreadyAddedException;
 
        /**
         * List all contacts
@@ -218,14 +219,14 @@ public interface ContactFacade extends Facade {
         * @param columnIndex Column index
         * <p>
         * @return Human-readable column name TODO: This is needed for TableModel in
-        * Swing
+        *         Swing
         */
        String getTranslatedColumnName (final int columnIndex);
 
        /**
         * Somewhat "getter" for value from given row and column index
         * <p>
-        * @param rowIndex Row index
+        * @param rowIndex    Row index
         * @param columnIndex Column index
         * <p>
         * @return Value from given row/column
@@ -248,4 +249,5 @@ public interface ContactFacade extends Facade {
         * @param contact Contact being added TODO Add check for book size
         */
        void registerContact (final Contact contact);
+
 }