From fa1c8dd283ca9f8a4e60294364fb03a532aeb637 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 19 Nov 2017 01:52:18 +0100 Subject: [PATCH] Continued: - no more user instance, just a plain exception for now MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../UserPasswordRepeatMismatchException.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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."); } } -- 2.39.5