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;
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.");
}
((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);
}
}
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;
}
@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
}
@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
// Add contact to internal list
this.addContact(contact);
- } catch (final ContactAlreadyAddedException ex) {
+ } catch (final BusinessContactAlreadyAddedException ex) {
// Abort here
this.abortProgramWithException(ex);
}
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;
* <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
/**
* 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