From: Roland Häder Date: Sat, 15 Jul 2017 17:43:03 +0000 (+0200) Subject: Opps, wrong exception thrown X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c495a81ce048d9f3f7f4952b45b0278e42f5660d;p=addressbook-swing.git Opps, wrong exception thrown --- diff --git a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java index 894bfc2..3e6e2f4 100644 --- a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java +++ b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java @@ -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 { *

* @param contact Contact instance to add *

- * @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 *

- * @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 *

* @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 *

- * @param rowIndex Row index + * @param rowIndex Row index * @param columnIndex Column index *

* @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); + }