Revision 49185
Added by Tsampikos Livisianos almost 7 years ago
modules/uoa-user-management/trunk/src/main/java/eu/dnetlib/openaire/user/utils/LDAPExceptions/LDAPUsernameExistsException.java | ||
---|---|---|
1 |
package eu.dnetlib.openaire.user.utils.LDAPExceptions; |
|
2 |
|
|
3 |
|
|
4 |
public class LDAPUsernameExistsException extends Exception { |
|
5 |
public LDAPUsernameExistsException(String username) { |
|
6 |
super("Username " + username + " already exists!"); |
|
7 |
} |
|
8 |
|
|
9 |
public LDAPUsernameExistsException(String username, Throwable throwable) { |
|
10 |
super("Username " + username + " already exists!", throwable); |
|
11 |
} |
|
12 |
} |
modules/uoa-user-management/trunk/src/main/java/eu/dnetlib/openaire/user/utils/LDAPExceptions/LDAPEmailExistsException.java | ||
---|---|---|
1 |
package eu.dnetlib.openaire.user.utils.LDAPExceptions; |
|
2 |
|
|
3 |
public class LDAPEmailExistsException extends Exception { |
|
4 |
public LDAPEmailExistsException(String mail) { |
|
5 |
super("Email " + mail + " already exists!"); |
|
6 |
} |
|
7 |
|
|
8 |
public LDAPEmailExistsException(String mail, Throwable throwable) { |
|
9 |
super("Email " + mail + " already exists!", throwable); |
|
10 |
} |
|
11 |
} |
Also available in: Unified diff
add custom ldap exceptions