From: Roland Haeder Date: Fri, 16 Oct 2015 19:13:34 +0000 (+0200) Subject: added new constructor with user id X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=50c687f3982ee332c7344abfcdf3be9e0b240b1f;p=juser-login-core.git added new constructor with user id --- diff --git a/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java b/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java index e10b64b..d9f0821 100644 --- a/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java +++ b/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java @@ -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 + *

+ * @param userId User id + */ + public UserNotFoundException (final Long userId) { + super(MessageFormat.format("User id {0} not found.", userId)); //NOI18N } }