mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 13:35:44 +01:00
added GroupNotFoundException and UserNotFoundException
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user