From: Roland Häder Date: Fri, 13 May 2016 14:32:43 +0000 (+0200) Subject: added exception thrown when a user's email address was not found X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=06f6c114c18e67d00935d3b5b7adc5da0a5c8d39;p=juser-login-core.git added exception thrown when a user's email address was not found --- diff --git a/src/org/mxchange/jusercore/exceptions/UserEmailAddressNotFoundException.java b/src/org/mxchange/jusercore/exceptions/UserEmailAddressNotFoundException.java new file mode 100644 index 0000000..8a1591f --- /dev/null +++ b/src/org/mxchange/jusercore/exceptions/UserEmailAddressNotFoundException.java @@ -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 . + */ +package org.mxchange.jusercore.exceptions; + +import java.text.MessageFormat; + +/** + * An exception thrown when an user email address was not found. + *

+ * @author Roland Haeder + */ +public class UserEmailAddressNotFoundException extends Exception { + + /** + * Serial number + */ + private static final long serialVersionUID = 50_375_271_856_714_906L; + + /** + * Constructor with email address + *

+ * @param emailAddress Email address + */ + public UserEmailAddressNotFoundException (final String emailAddress) { + super(MessageFormat.format("User email address {0} not found.", emailAddress)); //NOI18N + } + +}