This is the internal dual of ProvisionException, similar to the relationship between
com. and ErrorsException. This is useful for
several reasons:
This exception will be thrown when errors are encountered during provisioning, ErrorsException
will continue to be used for errors that are encountered during provisioning and both make use of
the Message as the core model.
Note
this object stores a list of messages but in the most common case the cardinality will
be 1. The only time that multiple errors might be reported via this mechanism is when errorInUserCode is called with an exception that holds multiple errors (like
ProvisionException).
| Modifier and Type | Field and Description |
|---|---|
| private final ImmutableList | |
| private static final Logger | |
| private final List | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv InternalProvisionException | |
| public static InternalProvisionException | |
| public static InternalProvisionException | |
| public static InternalProvisionException | |
| public static InternalProvisionException | |
| public static InternalProvisionException | |
| public static InternalProvisionException | |
| public static InternalProvisionException | |
| public static InternalProvisionException | |
| public static InternalProvisionException | errorNotifyingInjectionListener(InjectionListener<?> listener, TypeLiteral<?> type, RuntimeException cause)
|
| pack-priv ImmutableList | |
| public static InternalProvisionException | |
| pack-priv static void | onNullInjectedIntoNonNullableDependency(Object source, Dependency<?> dependency)
Returns |
| public static InternalProvisionException | |
| public ProvisionException |
| errors | back to summary |
|---|---|
| private final ImmutableList<Message> errors | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| sourcesToPrepend | back to summary |
|---|---|
| private final List<Object> sourcesToPrepend | |
| warnedDependencies | back to summary |
|---|---|
| private static final Set<Dependency<?>> warnedDependencies | |
| InternalProvisionException | back to summary |
|---|---|
| pack-priv InternalProvisionException(Message error) | |
| InternalProvisionException | back to summary |
|---|---|
| private InternalProvisionException(Iterable<Message> errors) | |
| addSource | back to summary |
|---|---|
| pack-priv InternalProvisionException addSource(Object source) Prepends the given It is expected that this method is called as the exception propagates up the stack.
| |
| cannotProxyClass | back to summary |
|---|---|
| public static InternalProvisionException cannotProxyClass(Class<?> expectedType) | |
| circularDependenciesDisabled | back to summary |
|---|---|
| public static InternalProvisionException circularDependenciesDisabled(Class<?> expectedType) | |
| create | back to summary |
|---|---|
| public static InternalProvisionException create(ErrorId errorId, String format, Object... arguments) | |
| errorInjectingConstructor | back to summary |
|---|---|
| public static InternalProvisionException errorInjectingConstructor(Throwable cause) | |
| errorInjectingMethod | back to summary |
|---|---|
| public static InternalProvisionException errorInjectingMethod(Throwable cause) | |
| errorInProvider | back to summary |
|---|---|
| public static InternalProvisionException errorInProvider(Throwable cause) | |
| errorInUserCode | back to summary |
|---|---|
| public static InternalProvisionException errorInUserCode(ErrorId errorId, Throwable cause, String messageFormat, Object... arguments) | |
| errorInUserInjector | back to summary |
|---|---|
| public static InternalProvisionException errorInUserInjector(MembersInjector<?> listener, TypeLiteral<?> type, RuntimeException cause) | |
| errorNotifyingInjectionListener | back to summary |
|---|---|
| public static InternalProvisionException errorNotifyingInjectionListener(InjectionListener<?> listener, TypeLiteral<?> type, RuntimeException cause) | |
| getErrors | back to summary |
|---|---|
| pack-priv ImmutableList | |
| jitDisabled | back to summary |
|---|---|
| public static InternalProvisionException jitDisabled(Key<?> key) | |
| onNullInjectedIntoNonNullableDependency | back to summary |
|---|---|
| pack-priv static void onNullInjectedIntoNonNullableDependency(Object source, Dependency<?> dependency) throws InternalProvisionException Returns | |
| subtypeNotProvided | back to summary |
|---|---|
| public static InternalProvisionException subtypeNotProvided(Class<? extends Provider<?>> providerType, Class<?> type) | |
| toProvisionException | back to summary |
|---|---|
| public ProvisionException toProvisionException() Returns this exception convered to a ProvisionException. | |