added GroupNotFoundException and UserNotFoundException

This commit is contained in:
Sebastian Sdorra
2013-01-29 20:39:08 +01:00
parent a5c24f54d5
commit 65c80b14fb
6 changed files with 210 additions and 10 deletions

View File

@@ -176,7 +176,7 @@ public class DefaultGroupManager extends AbstractGroupManager
}
else
{
throw new GroupException("user does not exists");
throw new GroupNotFoundException("user does not exists");
}
}
@@ -228,7 +228,7 @@ public class DefaultGroupManager extends AbstractGroupManager
}
else
{
throw new GroupException("group does not exists");
throw new GroupNotFoundException("group does not exists");
}
}
@@ -256,7 +256,7 @@ public class DefaultGroupManager extends AbstractGroupManager
if (fresh == null)
{
throw new GroupException("group does not exists");
throw new GroupNotFoundException("group does not exists");
}
fresh.copyProperties(group);