package org.mxchange.jcontactsbusiness.exceptions.basicdata;
import java.text.MessageFormat;
-import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
/**
* Thrown if the given BasicData instance is already added
/**
* Constructor with a basic data instance
* <p>
- * @param businessContact Business contact that is already added
+ * @param companyName Company name
*/
- public BasicDataAlreadyAddedException (final BasicData businessContact) {
- super(MessageFormat.format("Business contact with comanyName={0} already added.", businessContact.getCompanyName())); //NOI18N
+ public BasicDataAlreadyAddedException (final String companyName) {
+ super(MessageFormat.format("Business contact with comanyName={0} already added.", companyName)); //NOI18N
}
/**