From: Roland Häder Date: Sun, 19 Nov 2017 00:52:18 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa1c8dd283ca9f8a4e60294364fb03a532aeb637;p=juser-login-core.git Continued: - no more user instance, just a plain exception for now Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/juserlogincore/exceptions/UserPasswordRepeatMismatchException.java b/src/org/mxchange/juserlogincore/exceptions/UserPasswordRepeatMismatchException.java index 78deecf..0469bff 100644 --- a/src/org/mxchange/juserlogincore/exceptions/UserPasswordRepeatMismatchException.java +++ b/src/org/mxchange/juserlogincore/exceptions/UserPasswordRepeatMismatchException.java @@ -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 - *

- * @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."); } }