diff --git a/dspace-sword/dspace-sword-api/src/main/java/org/dspace/sword/SWORDIngesterFactory.java b/dspace-sword/dspace-sword-api/src/main/java/org/dspace/sword/SWORDIngesterFactory.java index b8bd6c1ee5..bb4ab57a58 100644 --- a/dspace-sword/dspace-sword-api/src/main/java/org/dspace/sword/SWORDIngesterFactory.java +++ b/dspace-sword/dspace-sword-api/src/main/java/org/dspace/sword/SWORDIngesterFactory.java @@ -45,6 +45,8 @@ import org.dspace.content.Collection; import org.dspace.content.Item; import org.purl.sword.base.Deposit; +import org.purl.sword.base.SWORDErrorException; +import org.purl.sword.base.ErrorCodes; import org.apache.log4j.Logger; /** @@ -74,14 +76,14 @@ public class SWORDIngesterFactory * @throws DSpaceSWORDException */ public static SWORDIngester getInstance(Context context, Deposit deposit, DSpaceObject dso) - throws DSpaceSWORDException - { + throws DSpaceSWORDException, SWORDErrorException + { if (dso instanceof Collection) { SWORDIngester ingester = (SWORDIngester) PluginManager.getNamedPlugin(SWORDIngester.class, deposit.getPackaging()); if (ingester == null) { - throw new DSpaceSWORDException("No ingester configured for this package type"); + throw new SWORDErrorException(ErrorCodes.ERROR_CONTENT, "No ingester configured for this package type"); } return ingester; } diff --git a/dspace/CHANGES b/dspace/CHANGES index 31e7018665..f68a271679 100644 --- a/dspace/CHANGES +++ b/dspace/CHANGES @@ -14,6 +14,7 @@ - [DS-194] Give METS ingester configuration option to make use of collection templates - [DS-195] Allow the primary bitstream to be set in the item importer / exporter - [DS-196] METS exposed via OAI-PMH includes description.provenance information + - [DS-200] SWORD module requires the X-Packaging header (Larry Stone) - [DS-193] OAI RDF crosswalk fails when DC value is null