--- /dev/null
+/*
+ * Copyright (C) 2015 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;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * An exception thrown when the user's account was not found
+ * <p>
+ * @author Roland Haeder
+ */
+public class UserNotFoundException extends Exception {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 42_895_928_956_718_956L;
+
+ /**
+ * Constructor with already registered user instance
+ * <p>
+ * @param user User instance
+ */
+ public UserNotFoundException (final User user) {
+ // Call super contructor
+ super(MessageFormat.format("User name {0} not found.", user.getUserName()));
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2015 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;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * An exception thrown when the user account is locked
+ * <p>
+ * @author Roland Haeder
+ */
+public class UserStatusLockedException extends Exception {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 438_395_891_288_681L;
+
+ /**
+ * Constructor with already registered user instance
+ * <p>
+ * @param user User instance
+ */
+ public UserStatusLockedException (final User user) {
+ // Call super contructor
+ super(MessageFormat.format("User account with user name {0} is locked.", user.getUserName()));
+ }
+}
--- /dev/null
+/*
+ * Copyright (C) 2015 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;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * An exception thrown when the user account is unconfirmed
+ * <p>
+ * @author Roland Haeder
+ */
+public class UserStatusUnconfirmedException extends Exception {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 438_395_891_288_681L;
+
+ /**
+ * Constructor with already registered user instance
+ * <p>
+ * @param user User instance
+ */
+ public UserStatusUnconfirmedException (final User user) {
+ // Call super contructor
+ super(MessageFormat.format("User account with user name {0} is unconfirmed.", user.getUserName()));
+ }
+}