]> git.mxchange.org Git - juser-login-core.git/commitdiff
added exception thrown when a user's email address was not found
authorRoland Häder <roland@mxchange.org>
Fri, 13 May 2016 14:32:43 +0000 (16:32 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 13 May 2016 14:32:43 +0000 (16:32 +0200)
src/org/mxchange/jusercore/exceptions/UserEmailAddressNotFoundException.java [new file with mode: 0644]

diff --git a/src/org/mxchange/jusercore/exceptions/UserEmailAddressNotFoundException.java b/src/org/mxchange/jusercore/exceptions/UserEmailAddressNotFoundException.java
new file mode 100644 (file)
index 0000000..8a1591f
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * 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.jusercore.exceptions;
+
+import java.text.MessageFormat;
+
+/**
+ * An exception thrown when an user email address was not found.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class UserEmailAddressNotFoundException extends Exception {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 50_375_271_856_714_906L;
+
+       /**
+        * Constructor with email address
+        * <p>
+        * @param emailAddress Email address
+        */
+       public UserEmailAddressNotFoundException (final String emailAddress) {
+               super(MessageFormat.format("User email address {0} not found.", emailAddress)); //NOI18N
+       }
+
+}