Author: suat
Date: Mon Sep 10 10:56:55 2012
New Revision: 1382754
URL: http://svn.apache.org/viewvc?rev=1382754&view=rev
Log:
Some improvements on the exception handling in the SolrStoreImpl
Modified:
incubator/stanbol/trunk/contenthub/store/solr/src/main/java/org/apache/stanbol/contenthub/store/solr/SolrStoreImpl.java
Modified:
incubator/stanbol/trunk/contenthub/store/solr/src/main/java/org/apache/stanbol/contenthub/store/solr/SolrStoreImpl.java
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/contenthub/store/solr/src/main/java/org/apache/stanbol/contenthub/store/solr/SolrStoreImpl.java?rev=1382754&r1=1382753&r2=1382754&view=diff
==============================================================================
---
incubator/stanbol/trunk/contenthub/store/solr/src/main/java/org/apache/stanbol/contenthub/store/solr/SolrStoreImpl.java
(original)
+++
incubator/stanbol/trunk/contenthub/store/solr/src/main/java/org/apache/stanbol/contenthub/store/solr/SolrStoreImpl.java
Mon Sep 10 10:56:55 2012
@@ -119,10 +119,7 @@ public class SolrStoreImpl implements So
private ServiceRegistration enhancementGraphRegistry;
@Activate
- protected void activate(ComponentContext context) throws
IllegalArgumentException,
- IOException,
- InvalidSyntaxException,
- StoreException {
+ protected void activate(ComponentContext context) throws StoreException {
if (managedSolrServer == null) {
throw new IllegalStateException("ManagedSolrServer cannot be
referenced within SolrServerImpl.");
}
@@ -156,7 +153,7 @@ public class SolrStoreImpl implements So
return enhancementGraph;
}
- public void createEnhancementGraph() {
+ public void createEnhancementGraph() throws StoreException {
final UriRef graphUri = new UriRef(Constants.ENHANCEMENTS_GRAPH_URI);
MGraph enhancementGraph = null;
try {
@@ -174,6 +171,7 @@ public class SolrStoreImpl implements So
} catch (InvalidSyntaxException e) {
log.error("Failed to get ServiceReference for TripleCollection");
+ throw new StoreException("Failed to get ServiceReference for
TripleCollection", e);
}
}