ClientResponse result = new ClientResponse(200, handler.triples);
result.setExpires(expiresDate);
return result;
} catch (RepositoryException e) {
log.error("error while initialising Sesame repository; classpath problem?",e);
throw new DataRetrievalException("error while initialising Sesame repository; classpath problem?",e);
} catch (ClientProtocolException e) {
log.error("HTTP client error while trying to retrieve resource {}: {}", resourceUri, e.getMessage());
throw new DataRetrievalException("I/O error while trying to retrieve resource "+resourceUri,e);
} catch (IOException e) {
log.error("I/O error while trying to retrieve resource {}: {}", resourceUri, e.getMessage());
throw new DataRetrievalException("I/O error while trying to retrieve resource "+resourceUri,e);
} catch(RuntimeException ex) {
log.error("Unknown error while trying to retrieve resource {}: {}", resourceUri, ex.getMessage());
throw new DataRetrievalException("Unknown error while trying to retrieve resource "+resourceUri,ex);
}
}