import org.mxchange.jcontacts.contact.UserContact;
import org.mxchange.jcontacts.contact.title.PersonalTitle;
import org.mxchange.jcontacts.contact.title.PersonalTitleUtils;
-import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.exceptions.BusinessDataAlreadyAddedException;
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 BusinessContactAlreadyAddedException ex) {
+ } catch (final BusinessDataAlreadyAddedException ex) {
// Already added
this.outputMessage("Sie haben bereits Ihre eigenen Daten eingegeben.");
}
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jcontacts.contact.title.PersonalTitle;
-import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException;
+import org.mxchange.jcontactsbusiness.exceptions.BusinessDataAlreadyAddedException;
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 BusinessContactAlreadyAddedException {
+ public void addContact (final Contact contact) throws BusinessDataAlreadyAddedException {
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
}
@Override
- public void doEnterOwnData () throws BusinessContactAlreadyAddedException {
+ public void doEnterOwnData () throws BusinessDataAlreadyAddedException {
// Trace message
this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Is own contact already added?
if (this.isOwnContactAdded()) {
// Don't continue here
- throw new BusinessContactAlreadyAddedException();
+ throw new BusinessDataAlreadyAddedException();
}
// Get and cast client instance
// Add contact to internal list
this.addContact(contact);
- } catch (final BusinessContactAlreadyAddedException ex) {
+ } catch (final BusinessDataAlreadyAddedException ex) {
// Abort here
this.abortProgramWithException(ex);
}
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.jcontactsbusiness.exceptions.BusinessDataAlreadyAddedException;
import org.mxchange.jcore.facade.Facade;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
* @param contact Contact instance to add
* <p>
* @throws
- * org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException
+ * org.mxchange.jcontactsbusiness.exceptions.BusinessDataAlreadyAddedException
* If the contact is already added
*/
- void addContact (final Contact contact) throws BusinessContactAlreadyAddedException;
+ void addContact (final Contact contact) throws BusinessDataAlreadyAddedException;
/**
* Let the user add a new other address