MCPcopy Create free account
hub / github.com/google/guice / missingImplementation

Method missingImplementation

core/src/com/google/inject/internal/Errors.java:158–160  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

addMessageMethod · 0.95

Tested by

no test coverage detected