Remove unused exception constructors

This commit is contained in:
René Pfeuffer
2018-08-03 08:40:01 +02:00
parent f0f57de4b5
commit ebe3ef8c3e
2 changed files with 4 additions and 44 deletions

View File

@@ -172,7 +172,7 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager {
private void preDelete(Repository toDelete) throws RepositoryException {
if (configuration.isEnableRepositoryArchive() && !toDelete.isArchived()) {
throw new RepositoryIsNotArchivedException("Repository could not deleted, because it is not archived.");
throw new RepositoryIsNotArchivedException();
}
fireEvent(HandlerEventType.BEFORE_DELETE, toDelete);
getHandler(toDelete).delete(toDelete);