[grid]: Make it clear when a route cannot be instantiated
import java.util.List;
import java.util.Optional;
+import java.util.logging.Logger;
public class CombinedRoute extends Route<CombinedRoute> {
+ public static final Logger LOG = Logger.getLogger(Route.class.getName());
private final List<Routes> factories;
CombinedRoute(List<Routes> factories) {
@@ -48,6 +50,7 @@ protected CommandHandler newHandler(Injector injector, HttpRequest request) {
return handler.get();
}
} catch (IllegalArgumentException | UnableToInstaniateInstanceException e) {
+ LOG.warning(e.getMessage());
// ignore and carry on
}
}
