[CSTPER-221] Minor changes and cleanup

This commit is contained in:
Alessandro Martelli
2020-10-30 18:41:04 +01:00
parent 28273ce292
commit b878b0a7e0
6 changed files with 9 additions and 14 deletions

View File

@@ -142,8 +142,8 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
} else {
identifierService.register(context, newCollection, handle);
}
} catch (IdentifierException e) {
throw new RuntimeException("Can't create an Identifier!");
} catch (IllegalStateException | IdentifierException ex) {
throw new IllegalStateException(ex);
}
// create the default authorization policy for collections