mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
added GroupNotFoundException and UserNotFoundException
This commit is contained in:
@@ -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