From: Roland Haeder <roland@mxchange.org>
Date: Wed, 13 Apr 2016 16:36:13 +0000 (+0200)
Subject: Renamed exception
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d8c1e05017a7e782dbef501a89852bf556c6438;p=jphone-core.git

Renamed exception
---

diff --git a/src/org/mxchange/jphone/exceptions/MobileProviderAlreadyAddedException.java b/src/org/mxchange/jphone/exceptions/MobileProviderAlreadyAddedException.java
new file mode 100644
index 0000000..4c047f7
--- /dev/null
+++ b/src/org/mxchange/jphone/exceptions/MobileProviderAlreadyAddedException.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2016 Roland Haeder
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jphone.exceptions;
+
+import java.text.MessageFormat;
+import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
+
+/**
+ * An exception thrown when the mobile provider is already added. This should be
+ * found out by checking dial prefix and country id in combination.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class MobileProviderAlreadyAddedException extends Exception {
+
+	/**
+	 * Serial number
+	 */
+	private static final long serialVersionUID = 16_857_128_756_894_186L;
+
+	/**
+	 * Constructor with mobile provider instance
+	 * <p>
+	 * @param mobileProvider Mobile provider instance
+	 */
+	public MobileProviderAlreadyAddedException (final MobileProvider mobileProvider) {
+		// Create message an call super constructor
+		super(MessageFormat.format("Mobile provider {0} with dial prefix {1} and country {2} has already been added.", mobileProvider.getProviderName(), mobileProvider.getProviderDialPrefix(), mobileProvider.getProviderCountry().getCountryCode())); //NOI18N
+	}
+
+}
diff --git a/src/org/mxchange/jphone/exceptions/MobileProviderAlreadyCreatedException.java b/src/org/mxchange/jphone/exceptions/MobileProviderAlreadyCreatedException.java
deleted file mode 100644
index b1d0535..0000000
--- a/src/org/mxchange/jphone/exceptions/MobileProviderAlreadyCreatedException.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (C) 2016 Roland Haeder
- *
- * 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jphone.exceptions;
-
-import java.text.MessageFormat;
-import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
-
-/**
- * An exception thrown when the mobile provider is already registered. This
- * should be found out by checking dial prefix and country id in combination.
- * <p>
- * @author Roland Haeder<roland@mxchange.org>
- */
-public class MobileProviderAlreadyCreatedException extends Exception {
-
-	/**
-	 * Serial number
-	 */
-	private static final long serialVersionUID = 16_857_128_756_894_186L;
-
-	/**
-	 * Constructor with mobile provider instance
-	 * <p>
-	 * @param mobileProvider Mobile provider instance
-	 */
-	public MobileProviderAlreadyCreatedException (final MobileProvider mobileProvider) {
-		// Create message an call super constructor
-		super(MessageFormat.format("Mobile provider {0} with dial prefix {1} and country {2} has already been added.", mobileProvider.getProviderName(), mobileProvider.getProviderDialPrefix(), mobileProvider.getProviderCountry().getCountryCode())); //NOI18N
-	}
-
-}