Create NotFoundExceptions with id fields

This commit is contained in:
René Pfeuffer
2018-07-12 10:20:16 +02:00
parent 4e207713bf
commit 42543f6a47
7 changed files with 16 additions and 18 deletions

View File

@@ -185,7 +185,7 @@ public class DefaultUserManager extends AbstractUserManager
}
else
{
throw new UserNotFoundException();
throw new UserNotFoundException(user);
}
}
@@ -249,7 +249,7 @@ public class DefaultUserManager extends AbstractUserManager
if (fresh == null)
{
throw new UserNotFoundException();
throw new UserNotFoundException(user);
}
fresh.copyProperties(user);