mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
added message to GroupAlreadyExistsException
This commit is contained in:
@@ -44,4 +44,13 @@ public class GroupAllreadyExistExeption extends GroupException
|
||||
|
||||
/** Field description */
|
||||
private static final long serialVersionUID = 4042878550219750430L;
|
||||
|
||||
/**
|
||||
* Constructs a new instance.
|
||||
*
|
||||
* @param message exception message
|
||||
*/
|
||||
public GroupAllreadyExistExeption(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ public class DefaultGroupManager extends AbstractGroupManager
|
||||
|
||||
if (groupDAO.contains(name))
|
||||
{
|
||||
throw new GroupAllreadyExistExeption();
|
||||
throw new GroupAllreadyExistExeption(name.concat(" group already exists"));
|
||||
}
|
||||
|
||||
removeDuplicateMembers(group);
|
||||
|
||||
Reference in New Issue
Block a user