public static InternalProvisionException cannotProxyClass(Class<?> expectedType) { return create( "Tried proxying %s to support a circular dependency, but it is not an interface.", expectedType); }
public static InternalProvisionException circularDependenciesDisabled(Class<?> expectedType) { return create( "Found a circular dependency involving %s, and circular dependencies are disabled.", expectedType); }
public static InternalProvisionException subtypeNotProvided( Class<? extends javax.inject.Provider<?>> providerType, Class<?> type) { return create("%s doesn't provide instances of %s.", providerType, type); }
public static InternalProvisionException jitDisabled(Key<?> key) { return create("Explicit bindings are required and %s is not explicitly bound.", key); }
private static <K, V> InternalProvisionException createNullValueException( K key, Binding<V> binding) { return InternalProvisionException.create( "Map injection failed due to null value for key \"%s\", bound at: %s", key, binding.getSource()); } }
private InternalProvisionException newNullEntryException(int i) { return InternalProvisionException.create( "Set injection failed due to null element bound at: %s", bindings.get(i).getSource()); }
if (Objects.equal(oldString, newString)) { return InternalProvisionException.create( "Set injection failed due to duplicated element \"%s\"" + "\n Bound at %s\n Bound at %s", } else { return InternalProvisionException.create( "Set injection failed due to multiple elements comparing equal:" + "\n \"%s\"\n bound at %s"
: StackTraceElements.forMember(dependency.getInjectionPoint().getMember()); throw InternalProvisionException.create( "null returned by binding at %s%n but %s is not @Nullable", source, formattedDependency) .addSource(source);
public static InternalProvisionException cannotProxyClass(Class<?> expectedType) { return create( "Tried proxying %s to support a circular dependency, but it is not an interface.", expectedType); }
public static InternalProvisionException circularDependenciesDisabled(Class<?> expectedType) { return create( "Found a circular dependency involving %s, and circular dependencies are disabled.", expectedType); }
public static InternalProvisionException circularDependenciesDisabled(Class<?> expectedType) { return create( "Found a circular dependency involving %s, and circular dependencies are disabled.", expectedType); }
public static InternalProvisionException cannotProxyClass(Class<?> expectedType) { return create( "Tried proxying %s to support a circular dependency, but it is not an interface.", expectedType); }
public static InternalProvisionException subtypeNotProvided( Class<? extends javax.inject.Provider<?>> providerType, Class<?> type) { return create("%s doesn't provide instances of %s.", providerType, type); }
public static InternalProvisionException subtypeNotProvided( Class<? extends javax.inject.Provider<?>> providerType, Class<?> type) { return create("%s doesn't provide instances of %s.", providerType, type); }
public static InternalProvisionException jitDisabled(Key<?> key) { return create("Explicit bindings are required and %s is not explicitly bound.", key); }
public static InternalProvisionException jitDisabled(Key<?> key) { return create("Explicit bindings are required and %s is not explicitly bound.", key); }
private static <K, V> InternalProvisionException createNullValueException( K key, Binding<V> binding) { return InternalProvisionException.create( "Map injection failed due to null value for key \"%s\", bound at: %s", key, binding.getSource()); } }
private static <K, V> InternalProvisionException createNullValueException( K key, Binding<V> binding) { return InternalProvisionException.create( "Map injection failed due to null value for key \"%s\", bound at: %s", key, binding.getSource()); } }
private InternalProvisionException newNullEntryException(int i) { return InternalProvisionException.create( "Set injection failed due to null element bound at: %s", bindings.get(i).getSource()); }
private InternalProvisionException newNullEntryException(int i) { return InternalProvisionException.create( "Set injection failed due to null element bound at: %s", bindings.get(i).getSource()); }