]> git.mxchange.org Git - jphone-core.git/blobdiff - src/org/mxchange/jphone/exceptions/phone/PhoneNumberNotLinkedException.java
Updated copyright year
[jphone-core.git] / src / org / mxchange / jphone / exceptions / phone / PhoneNumberNotLinkedException.java
index 2c40eea6c449bb07c48a0b1bc444850df5bc80f5..153429933c90dc5f33f1fda601b17f44f3a55c4f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 - 2018 Free Software Foundation
+ * Copyright (C) 2016 - 2024 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,11 +19,10 @@ package org.mxchange.jphone.exceptions.phone;
 import java.text.MessageFormat;
 import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber;
-import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber;
 
 /**
- * An exception thrown when a fax, land-line or mobile number is not linked but
- * should be.
+ * An exception thrown when a fax or land-line number is not linked but should
+ * be.
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
@@ -35,7 +34,7 @@ public class PhoneNumberNotLinkedException extends Exception {
        private static final long serialVersionUID = 18_964_581_681_985_599L;
 
        /**
-        * Counstructor with fax number
+        * Constructor with fax number
         * <p>
         * @param faxNumber Fax number
         */
@@ -45,7 +44,7 @@ public class PhoneNumberNotLinkedException extends Exception {
        }
 
        /**
-               * Counstructor with landLine number
+        * Constructor with landLine number
         * <p>
         * @param landLineNumber Land-line number
         */
@@ -54,14 +53,4 @@ public class PhoneNumberNotLinkedException extends Exception {
                super(MessageFormat.format("landLineNumber={0} with phoneId={1} is not linked.", landLineNumber, landLineNumber.getPhoneId())); //NOI18N
        }
 
-       /**
-        * Counstructor with mobile number
-        * <p>
-        * @param mobileNumber Mobile number
-        */
-       public PhoneNumberNotLinkedException (final DialableMobileNumber mobileNumber) {
-               // Call super constructor with message
-               super(MessageFormat.format("mobileNumber={0} with phoneId={1} is not linked.", mobileNumber, mobileNumber.getPhoneId())); //NOI18N
-       }
-
 }