Author: epbernard
Date: 2008-03-30 12:41:58 -0400 (Sun, 30 Mar 2008)
New Revision: 14485
Modified:
search/trunk/src/java/org/hibernate/search/bridge/BridgeFactory.java
Log:
HSEARCH-163 better error message in bridge factory
Modified: search/trunk/src/java/org/hibernate/search/bridge/BridgeFactory.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/bridge/BridgeFactory.java 2008-03-30
15:58:44 UTC (rev 14484)
+++ search/trunk/src/java/org/hibernate/search/bridge/BridgeFactory.java 2008-03-30
16:41:58 UTC (rev 14485)
@@ -113,7 +113,7 @@
if ( cb != null ) {
Class impl = cb.impl();
-
+ //TODO better error information ( see guessType() )
if (impl != null) {
try {
Object instance = impl.newInstance();
@@ -175,6 +175,7 @@
}
( (ParameterizedBridge) instance ).setParameterValues( params );
}
+ throw new SearchException("@FieldBridge bridge does not implement any of the
expected interfaces: " + member.getName() );
}
catch (Exception e) {
//TODO add classname