Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added error output to retrieve Uris
  • Loading branch information
fasseg committed Jun 4, 2013
1 parent 5a74d77 commit 0ad774b
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -9,6 +9,7 @@
import java.util.List;

import org.apache.http.client.methods.HttpGet;
import org.apache.jena.atlas.web.HttpException;
import org.apache.jena.riot.RDFDataMgr;
import org.fcrepo.RdfLexicon;
import org.fcrepo.fixity.model.DatastreamFixityError;
Expand Down Expand Up @@ -50,7 +51,11 @@ public List<String> retrieveUris(String parentUri) throws IOException {
try {
/* parse the RDF N3 response using Apache Jena */
final Model model = ModelFactory.createDefaultModel();
RDFDataMgr.read(model, parentUri);
try{
RDFDataMgr.read(model, parentUri);
}catch (HttpException e){
throw new IOException("Unable to fetch uris from " + parentUri,e);
}

/*
* and iterate over all the elements which contain the predicate
Expand Down

0 comments on commit 0ad774b

Please sign in to comment.