From: Roland Häder Date: Fri, 21 Dec 2018 14:24:24 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fd387d654c494dbf8fa00dc560de1a03845dcef0;p=jcontacts-business-core.git Continued: - rewrote exception to accept string instead of full BasicData object Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcontactsbusiness/exceptions/basicdata/BasicDataAlreadyAddedException.java b/src/org/mxchange/jcontactsbusiness/exceptions/basicdata/BasicDataAlreadyAddedException.java index 908d478..8336f63 100644 --- a/src/org/mxchange/jcontactsbusiness/exceptions/basicdata/BasicDataAlreadyAddedException.java +++ b/src/org/mxchange/jcontactsbusiness/exceptions/basicdata/BasicDataAlreadyAddedException.java @@ -17,7 +17,6 @@ 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 @@ -34,10 +33,10 @@ public class BasicDataAlreadyAddedException extends Exception { /** * Constructor with a basic data instance *

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