]> git.mxchange.org Git - juser-activity-core.git/commitdiff
updated jars + added new exceptions for user
authorRoland Haeder <roland@mxchange.org>
Tue, 6 Oct 2015 10:12:30 +0000 (12:12 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 6 Oct 2015 11:54:55 +0000 (13:54 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcontacts-core.jar
lib/jcore.jar
lib/jcoreee.jar
src/org/mxchange/jusercore/exceptions/UserNotFoundException.java [new file with mode: 0644]
src/org/mxchange/jusercore/exceptions/UserStatusLockedException.java [new file with mode: 0644]
src/org/mxchange/jusercore/exceptions/UserStatusUnconfirmedException.java [new file with mode: 0644]

index 60d3cc88e52b6a8bfa6ca7b45f787c3a8290892e..5fd68dc8f80098600ff320c77eef156f7e79d9d2 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index 2c6f30efe9f8c246eae16a87aef835bb909ba01d..b506a165e930439400060fff313b735ea2ad09f3 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 19ec1c4c0c5355690db3b56b7a5d61624e477181..d87f56db099dbce4c0917c934638141e43c7b492 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
diff --git a/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java b/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java
new file mode 100644 (file)
index 0000000..e10b64b
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * 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()));
+       }
+}
diff --git a/src/org/mxchange/jusercore/exceptions/UserStatusLockedException.java b/src/org/mxchange/jusercore/exceptions/UserStatusLockedException.java
new file mode 100644 (file)
index 0000000..1e785e1
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * 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()));
+       }
+}
diff --git a/src/org/mxchange/jusercore/exceptions/UserStatusUnconfirmedException.java b/src/org/mxchange/jusercore/exceptions/UserStatusUnconfirmedException.java
new file mode 100644 (file)
index 0000000..68779d6
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * 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()));
+       }
+}