From c495a81ce048d9f3f7f4952b45b0278e42f5660d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 15 Jul 2017 19:43:03 +0200 Subject: [PATCH] Opps, wrong exception thrown --- .../facade/contact/ContactFacade.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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); + } -- 2.39.5