From 50c687f3982ee332c7344abfcdf3be9e0b240b1f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 16 Oct 2015 21:13:34 +0200 Subject: [PATCH] added new constructor with user id --- .../jusercore/exceptions/UserNotFoundException.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 } } -- 2.39.5