]> git.mxchange.org Git - juser-core.git/commitdiff
added new constructor with user id
authorRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 19:13:34 +0000 (21:13 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 19:13:34 +0000 (21:13 +0200)
src/org/mxchange/jusercore/exceptions/UserNotFoundException.java

index e10b64b278a212dbd2f0f6d03a61478773692e4a..d9f0821884e990fe1c663384c72e73a3ef888014 100644 (file)
@@ -38,6 +38,15 @@ public class UserNotFoundException extends Exception {
         */
        public UserNotFoundException (final User user) {
                // Call super contructor
-               super(MessageFormat.format("User name {0} not found.", user.getUserName()));
+               super(MessageFormat.format("User name {0} not found.", user.getUserName())); //NOI18N
+       }
+
+       /**
+        * Constructor with user id
+        * <p>
+        * @param userId User id
+        */
+       public UserNotFoundException (final Long userId) {
+               super(MessageFormat.format("User id {0} not found.", userId)); //NOI18N
        }
 }