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

@@ -188,7 +188,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager {
repositoryDAO.delete(repository);
fireEvent(HandlerEventType.DELETE, repository);
} else {
throw new RepositoryNotFoundException();
throw new RepositoryNotFoundException(repository);
}
}
@@ -262,7 +262,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager {
if (fresh != null) {
fresh.copyProperties(repository);
} else {
throw new RepositoryNotFoundException();
throw new RepositoryNotFoundException(repository);
}
}