X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjusercore%2Fexceptions%2FUserNameAlreadyRegisteredException.java;h=f32fbb1f793414d5ee89ca264ed6fc3e84f5fae9;hb=8af893e4190313c88b4012e8a928935ddf432352;hp=7e356aa43ea533cbe4152a57719d173335cfaeba;hpb=f93f5059f17bb517ac4aca7fedddb14e3279d67f;p=juser-login-core.git diff --git a/src/org/mxchange/jusercore/exceptions/UserNameAlreadyRegisteredException.java b/src/org/mxchange/jusercore/exceptions/UserNameAlreadyRegisteredException.java index 7e356aa..f32fbb1 100644 --- a/src/org/mxchange/jusercore/exceptions/UserNameAlreadyRegisteredException.java +++ b/src/org/mxchange/jusercore/exceptions/UserNameAlreadyRegisteredException.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Roland Haeder + * Copyright (C) 2016 Roland Haeder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ import org.mxchange.jusercore.model.user.User; /** * An exception thrown when the user name is already registered *
- * @author Roland Haeder
+ * @author Roland Haeder
+ * @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));
+ }
+
}