[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

@@ -891,7 +891,7 @@ public class DOIIdentifierProvider extends FilteredIdentifierProvider {
* DOI is registered for another object already.
*/
protected DOI loadOrCreateDOI(Context context, DSpaceObject dso, String doiIdentifier)
throws SQLException, DOIIdentifierException {
throws SQLException, DOIIdentifierException, IdentifierNotApplicableException {
return loadOrCreateDOI(context, dso, doiIdentifier, false);
}
@@ -911,7 +911,7 @@ public class DOIIdentifierProvider extends FilteredIdentifierProvider {
* @throws DOIIdentifierException
*/
protected DOI loadOrCreateDOI(Context context, DSpaceObject dso, String doiIdentifier, Boolean skipFilter)
throws SQLException, DOIIdentifierException {
throws SQLException, DOIIdentifierException, IdentifierNotApplicableException {
DOI doi = null;