]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 21 Dec 2018 14:24:24 +0000 (15:24 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Dec 2018 14:24:24 +0000 (15:24 +0100)
- rewrote exception to accept string instead of full BasicData object

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/exceptions/basicdata/BasicDataAlreadyAddedException.java

index 908d478461ffc096c7aad9fa51358bb22749734c..8336f632df8439e0f27d9917e3af5fb67472dc72 100644 (file)
@@ -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
         * <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
        }
 
        /**