We use a fairly generic error message here. The motivation is to share the same message for both bind time errors: Guice.createInjector(new AbstractModule() { public void configure() { bind(Runnable.class); } } ...and at provide-time errors: Guice.create
(Key<?> key)
| 156 | * things unnecessarily complex. |
| 157 | */ |
| 158 | public Errors missingImplementation(Key<?> key) { |
| 159 | return addMessage(ErrorId.MISSING_IMPLEMENTATION, "No implementation for %s was bound.", key); |
| 160 | } |
| 161 | |
| 162 | /** Within guice's core, allow for better missing binding messages */ |
| 163 | <T> Errors missingImplementationWithHint(Key<T> key, Injector injector) { |
nothing calls this directly
no test coverage detected