[DS-4522] Use more generic IdentifierNotApplicableException where applicable

This commit is contained in:
Kim Shepherd
2021-03-23 16:17:47 +13:00
parent cc1f67734e
commit 3d609faf07
6 changed files with 49 additions and 14 deletions

View File

@@ -222,7 +222,7 @@ public class VersionedDOIIdentifierProvider extends DOIIdentifierProvider {
// Should never return null!
protected String makeIdentifierBasedOnHistory(Context context, DSpaceObject dso, VersionHistory history)
throws AuthorizeException, SQLException, DOIIdentifierException {
throws AuthorizeException, SQLException, DOIIdentifierException, IdentifierNotApplicableException {
// Mint foreach new version an identifier like: 12345/100.versionNumber
// use the bare handle (g.e. 12345/100) for the first version.