X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjusercore%2Fexceptions%2FUserNameAlreadyRegisteredException.java;h=f32fbb1f793414d5ee89ca264ed6fc3e84f5fae9;hb=8af893e4190313c88b4012e8a928935ddf432352;hp=dabf4519839bb3d3cb687e39322208c8fc30c3b4;hpb=fcab24513079f20ce70a0667f01dae536149075c;p=juser-login-core.git diff --git a/src/org/mxchange/jusercore/exceptions/UserNameAlreadyRegisteredException.java b/src/org/mxchange/jusercore/exceptions/UserNameAlreadyRegisteredException.java index dabf451..f32fbb1 100644 --- a/src/org/mxchange/jusercore/exceptions/UserNameAlreadyRegisteredException.java +++ b/src/org/mxchange/jusercore/exceptions/UserNameAlreadyRegisteredException.java @@ -41,4 +41,14 @@ public class UserNameAlreadyRegisteredException extends Exception { super(MessageFormat.format("User name {0} already registered at record id {1}. Maybe forgot to call isRegistered(user) ?", user.getUserName(), user.getUserId())); } + /** + * Constructor with already registered user name + *
+ * @param userName User name + */ + public UserNameAlreadyRegisteredException (final String userName) { + // Call super contructor + super(MessageFormat.format("User name {0} already used. Maybe forgot to call isRegistered(user) ?", userName)); + } + }