From fd387d654c494dbf8fa00dc560de1a03845dcef0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 21 Dec 2018 15:24:24 +0100 Subject: [PATCH] Continued: - rewrote exception to accept string instead of full BasicData object MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../basicdata/BasicDataAlreadyAddedException.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 } /** -- 2.39.5