]> git.mxchange.org Git - juser-login-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 19 Nov 2017 00:52:18 +0000 (01:52 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 19 Nov 2017 00:52:18 +0000 (01:52 +0100)
- no more user instance, just a plain exception for now

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/juserlogincore/exceptions/UserPasswordRepeatMismatchException.java

index 78deecf4af61837ef62d70d2c8fcfc27d9aa63e2..0469bffc6edda6a4c2fb600f9047dd0bf4498114 100644 (file)
@@ -16,9 +16,6 @@
  */
 package org.mxchange.juserlogincore.exceptions;
 
-import java.text.MessageFormat;
-import org.mxchange.jusercore.model.user.User;
-
 /**
  * An exception thrown when the entered password did not match the stored
  * password.
@@ -33,12 +30,10 @@ public class UserPasswordRepeatMismatchException extends Exception {
        private static final long serialVersionUID = 51_782_450_671_256_594L;
 
        /**
-        * Creates an exception with given user instance
-        * <p>
-        * @param user User instance
+        * Creates an exception with a default message
         */
-       public UserPasswordRepeatMismatchException (final User user) {
-               super(MessageFormat.format("Passwords don't match, userId={0}", user.getUserId()));
+       public UserPasswordRepeatMismatchException () {
+               super("Passwords don't match.");
        }
 
 }