Home
last modified time | relevance | path

Searched refs:InternalProvisionException (Results 1 – 25 of 33) sorted by relevance

12

/external/guice/core/src/com/google/inject/internal/
DInternalProvisionException.java66 public final class InternalProvisionException extends Exception { class
72 public static InternalProvisionException circularDependenciesDisabled(Class<?> expectedType) { in circularDependenciesDisabled()
78 public static InternalProvisionException cannotProxyClass(Class<?> expectedType) { in cannotProxyClass()
84 public static InternalProvisionException create(String format, Object... arguments) { in create()
85 return new InternalProvisionException(Messages.create(format, arguments)); in create()
88 public static InternalProvisionException errorInUserCode( in errorInUserCode()
94 return new InternalProvisionException(messages); in errorInUserCode()
96 return new InternalProvisionException(Messages.create(cause, messageFormat, arguments)); in errorInUserCode()
100 public static InternalProvisionException subtypeNotProvided( in subtypeNotProvided()
105 public static InternalProvisionException errorInProvider(Throwable cause) { in errorInProvider()
[all …]
DInternalProviderInstanceBindingImpl.java111 throws InternalProvisionException { in get()
119 public T call() throws InternalProvisionException { in get()
132 throws InternalProvisionException; in doProvision()
148 throws InternalProvisionException {
168 public T call() throws InternalProvisionException {
183 throws InternalProvisionException {
188 } catch (InternalProvisionException ipe) {
191 throw InternalProvisionException.errorInProvider(t).addSource(getSource());
DMembersInjectorImpl.java72 } catch (InternalProvisionException ipe) { in injectMembers()
83 throws InternalProvisionException { in injectAndNotify()
95 public T call() throws InternalProvisionException { in injectAndNotify()
121 void notifyListeners(T instance) throws InternalProvisionException { in notifyListeners()
133 throw InternalProvisionException.errorNotifyingInjectionListener( in notifyListeners()
140 throws InternalProvisionException { in injectMembers()
162 throw InternalProvisionException.errorInUserInjector( in injectMembers()
DProvidedByInternalFactory.java60 throws InternalProvisionException { in get()
72 } catch (InternalProvisionException ipe) { in get()
85 throws InternalProvisionException { in provision()
89 throw InternalProvisionException.subtypeNotProvided(providerType, rawType); in provision()
95 throw InternalProvisionException.errorInProvider(e).addSource(source); in provision()
DConstructorInjector.java66 throws InternalProvisionException { in construct()
80 throw InternalProvisionException.circularDependenciesDisabled( in construct()
97 public T call() throws InternalProvisionException { in construct()
109 throws InternalProvisionException {
130 throw InternalProvisionException.errorInjectingConstructor(cause)
DProvisionListenerStackCallback.java62 throws InternalProvisionException { in provision()
76 throw InternalProvisionException.errorInUserCode( in provision()
89 public T call() throws InternalProvisionException; in call()
99 InternalProvisionException exceptionDuringProvision;
113 } catch (InternalProvisionException ipe) { in provision()
DProviderInternalFactory.java43 throws InternalProvisionException { in circularGet()
65 public T call() throws InternalProvisionException { in circularGet()
84 throws InternalProvisionException {
87 InternalProvisionException.onNullInjectedIntoNonNullableDependency(source, dependency);
DBoundProviderFactory.java56 throws InternalProvisionException { in get()
62 } catch (InternalProvisionException ipe) { in get()
75 throws InternalProvisionException { in provision()
79 throw InternalProvisionException.errorInProvider(userException); in provision()
DInternalFactoryToProviderAdapter.java37 throws InternalProvisionException { in get()
41 InternalProvisionException.onNullInjectedIntoNonNullableDependency(source, dependency); in get()
45 throw InternalProvisionException.errorInProvider(userException).addSource(source); in get()
DSingleParameterInjector.java37 T inject(InternalContext context) throws InternalProvisionException { in inject()
43 } catch (InternalProvisionException ipe) { in inject()
55 throws InternalProvisionException { in getAll()
DInternalFactoryToInitializableAdapter.java46 throws InternalProvisionException { in get()
55 throws InternalProvisionException { in provision()
59 throw InternalProvisionException.errorInProvider(userException).addSource(source); in provision()
DConstructionContext.java62 throws InternalProvisionException { in createProxy()
64 throw InternalProvisionException.circularDependenciesDisabled(expectedType); in createProxy()
67 throw InternalProvisionException.cannotProxyClass(expectedType); in createProxy()
DSingleFieldInjector.java48 public void inject(InternalContext context, Object o) throws InternalProvisionException { in inject()
54 } catch (InternalProvisionException e) { in inject()
DFactoryProxy.java57 throws InternalProvisionException { in get()
63 } catch (InternalProvisionException ipe) { in get()
DSingleMethodInjector.java81 public void inject(InternalContext context, Object o) throws InternalProvisionException {
90 throw InternalProvisionException.errorInjectingMethod(cause).addSource(injectionPoint);
DInitializer.java141 } catch (InternalProvisionException ipe) { in injectAll()
198 public T get() throws InternalProvisionException { in get()
247 } catch (InternalProvisionException ipe) { in get()
DRealMultibinder.java184 throws InternalProvisionException { in doProvision()
212 private InternalProvisionException newNullEntryException(int i) { in newNullEntryException()
213 return InternalProvisionException.create( in newNullEntryException()
228 private InternalProvisionException newDuplicateValuesException( in newDuplicateValuesException()
256 return InternalProvisionException.create( in newDuplicateValuesException()
262 return InternalProvisionException.create( in newDuplicateValuesException()
DInitializable.java27 T get() throws InternalProvisionException; in get()
DProviderMethod.java171 throws InternalProvisionException { in doProvision()
175 InternalProvisionException.onNullInjectedIntoNonNullableDependency(getMethod(), dependency); in doProvision()
182 throw InternalProvisionException.errorInProvider(cause).addSource(getSource()); in doProvision()
DSingleMemberInjector.java23 void inject(InternalContext context, Object o) throws InternalProvisionException; in inject()
DInternalFactory.java37 throws InternalProvisionException; in get()
DRealOptionalBinder.java320 throws InternalProvisionException { in doProvision()
333 } catch (InternalProvisionException ipe) { in doProvision()
434 throws InternalProvisionException { in doProvision()
440 } catch (InternalProvisionException ipe) { in doProvision()
510 throws InternalProvisionException { in doProvision()
525 } catch (InternalProvisionException ipe) { in doProvision()
DConstantFactory.java33 throws InternalProvisionException { in get()
DProviderToInternalFactoryAdapter.java42 } catch (InternalProvisionException e) { in get()
/external/guice/core/test/com/google/inject/internal/
DInternalProvisionExceptionTest.java28 InternalProvisionException.create("An error") in testSourceFormatting()

12