Author: sannegrinovero
Date: 2009-04-05 13:49:12 -0400 (Sun, 05 Apr 2009)
New Revision: 16261
Modified:
search/branches/Branch_3_1/src/java/org/hibernate/search/store/DirectoryProviderFactory.java
Log:
porting trivial error message fix from trunk (was commit 16086)
Modified:
search/branches/Branch_3_1/src/java/org/hibernate/search/store/DirectoryProviderFactory.java
===================================================================
---
search/branches/Branch_3_1/src/java/org/hibernate/search/store/DirectoryProviderFactory.java 2009-04-05
17:39:43 UTC (rev 16260)
+++
search/branches/Branch_3_1/src/java/org/hibernate/search/store/DirectoryProviderFactory.java 2009-04-05
17:49:12 UTC (rev 16261)
@@ -82,18 +82,18 @@
shardingStrategy = (IndexShardingStrategy) shardigStrategyClass.newInstance();
}
catch (ClassNotFoundException e) {
- throw new SearchException( "Unable to find ShardingStrategy class " +
shardingStrategyName + " for " + directoryProviderName, e );
+ throw new SearchException( "Unable to find IndexShardingStrategy class " +
shardingStrategyName + " for " + directoryProviderName, e );
}
catch (IllegalAccessException e) {
- throw new SearchException( "Unable to create instance of ShardingStrategy class
" + shardingStrategyName
+ throw new SearchException( "Unable to create instance of IndexShardingStrategy
class " + shardingStrategyName
+ " Be sure to have a no-arg constructor", e );
}
catch (InstantiationException e) {
- throw new SearchException( "Unable to create instance of ShardingStrategy class
" + shardingStrategyName
+ throw new SearchException( "Unable to create instance of IndexShardingStrategy
class " + shardingStrategyName
+ " Be sure to have a no-arg constructor", e );
}
catch (ClassCastException e) {
- throw new SearchException( "ShardingStrategy class does not implements
DirecotryProviderShardingStrategy: "
+ throw new SearchException( "ShardingStrategy class does not implement
IndexShardingStrategy: "
+ shardingStrategyName, e );
}
}
Show replies by date