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

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