mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
submission lookup: replace misplaced exception
This commit is contained in:
@@ -19,7 +19,6 @@ import java.util.Set;
|
|||||||
import javax.xml.parsers.ParserConfigurationException;
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
|
|
||||||
import org.apache.commons.httpclient.HttpException;
|
import org.apache.commons.httpclient.HttpException;
|
||||||
import org.bouncycastle.crypto.RuntimeCryptoException;
|
|
||||||
import org.dspace.core.Context;
|
import org.dspace.core.Context;
|
||||||
import org.jdom.JDOMException;
|
import org.jdom.JDOMException;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
@@ -66,7 +65,7 @@ public class CrossRefOnlineDataLoader extends NetworkSubmissionLookupDataLoader
|
|||||||
List<Record> results = new ArrayList<Record>();
|
List<Record> results = new ArrayList<Record>();
|
||||||
|
|
||||||
if (getApiKey() == null){
|
if (getApiKey() == null){
|
||||||
throw new RuntimeCryptoException("No CrossRef API key is specified!");
|
throw new RuntimeException("No CrossRef API key is specified!");
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -99,7 +98,7 @@ public class CrossRefOnlineDataLoader extends NetworkSubmissionLookupDataLoader
|
|||||||
int year) throws HttpException, IOException
|
int year) throws HttpException, IOException
|
||||||
{
|
{
|
||||||
if (getApiKey() == null){
|
if (getApiKey() == null){
|
||||||
throw new RuntimeCryptoException("No CrossRef API key is specified!");
|
throw new RuntimeException("No CrossRef API key is specified!");
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Record> items = crossrefService.search(context, title, author,
|
List<Record> items = crossrefService.search(context, title, author,
|
||||||
|
Reference in New Issue
Block a user