From 06f6c114c18e67d00935d3b5b7adc5da0a5c8d39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 13 May 2016 16:32:43 +0200 Subject: [PATCH] added exception thrown when a user's email address was not found --- .../UserEmailAddressNotFoundException.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/org/mxchange/jusercore/exceptions/UserEmailAddressNotFoundException.java 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 + } + +} -- 2.39.5