/*
- * 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
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>
*/
private static final long serialVersionUID = 18_964_581_681_985_599L;
/**
- * Counstructor with fax number
+ * Constructor with fax number
* <p>
* @param faxNumber Fax number
*/
}
/**
- * Counstructor with landLine number
+ * Constructor with landLine number
* <p>
* @param landLineNumber Land-line number
*/
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
- }
-
}