mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +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);
|
||||
|
||||
@@ -220,7 +220,7 @@ public class DefaultUserManager extends AbstractUserManager
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new UserException("user does not exists");
|
||||
throw new UserNotFoundException("user does not exists");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -292,7 +292,7 @@ public class DefaultUserManager extends AbstractUserManager
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new UserException("user does not exists");
|
||||
throw new UserNotFoundException("user does not exists");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ public class DefaultUserManager extends AbstractUserManager
|
||||
|
||||
if (fresh == null)
|
||||
{
|
||||
throw new UserException("user does not exists");
|
||||
throw new UserNotFoundException("user does not exists");
|
||||
}
|
||||
|
||||
fresh.copyProperties(user);
|
||||
|
||||
Reference in New Issue
Block a user