added message to GroupAlreadyExistsException

This commit is contained in:
Sebastian Sdorra
2016-12-07 22:24:59 +01:00
parent d3adf8a893
commit 2a6f51fa6d
2 changed files with 10 additions and 1 deletions

View File

@@ -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);
}
}

View File

@@ -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);