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