Package | Description |
---|---|
com.google.inject.internal |
Guice (sounds like "juice")
|
com.google.inject.spi |
Guice service provider interface
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
InternalErrorDetail<T extends ErrorDetail<T>>
Represents an error created by Guice as opposed to custom error added to the binder from
application code.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
BindingAlreadySetError
Error reported by Guice when a key is bound at multiple places the injector.
|
(package private) class |
ChildBindingAlreadySetError
Error reported by Guice when a key is already bound in one or more child injectors or private
modules.
|
(package private) class |
DuplicateElementError<T>
Error reported by Guice when duplicate elements are found in a
Multibinder that does not
permit duplicates. |
(package private) class |
DuplicateMapKeyError<K,V>
Error reported by Guice when a duplicate key is found in a
MapBinder that does not permit
duplicates. |
class |
GenericErrorDetail
Generic error message representing a Guice internal error.
|
(package private) class |
InternalErrorDetail<T extends ErrorDetail<T>>
Represents an error created by Guice as opposed to custom error added to the binder from
application code.
|
(package private) class |
MissingConstructorError
Error reported when Guice can't find an useable constructor to create objects.
|
(package private) class |
MissingImplementationError<T>
Error reported by Guice when a key is not bound in the injector.
|
(package private) class |
ScopeNotFoundError
Error reported by Guice when a scope annotation is not bound to any scope implementation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BindingAlreadySetError.isMergeable(ErrorDetail<?> otherError) |
boolean |
ChildBindingAlreadySetError.isMergeable(ErrorDetail<?> otherError) |
boolean |
MissingConstructorError.isMergeable(ErrorDetail<?> other) |
boolean |
MissingImplementationError.isMergeable(ErrorDetail<?> otherError) |
boolean |
ScopeNotFoundError.isMergeable(ErrorDetail<?> other) |
Modifier and Type | Method and Description |
---|---|
void |
BindingAlreadySetError.formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter) |
void |
ChildBindingAlreadySetError.formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter) |
protected void |
DuplicateElementError.formatDetail(java.util.List<ErrorDetail<?>> others,
java.util.Formatter formatter) |
protected void |
DuplicateMapKeyError.formatDetail(java.util.List<ErrorDetail<?>> others,
java.util.Formatter formatter) |
void |
GenericErrorDetail.formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter) |
protected void |
MissingConstructorError.formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter) |
void |
MissingImplementationError.formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter) |
protected void |
ScopeNotFoundError.formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter) |
Modifier and Type | Class and Description |
---|---|
class |
ErrorDetail<SelfT extends ErrorDetail<SelfT>>
Details about a single Guice error and supports formatting itself in the context of other Guice
errors.
|
Modifier and Type | Field and Description |
---|---|
private ErrorDetail<?> |
Message.errorDetail |
Modifier and Type | Method and Description |
---|---|
ErrorDetail<?> |
Message.getErrorDetail()
Returns details about this error message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ErrorDetail.isMergeable(ErrorDetail<?> otherError)
Returns true if this error can be merged with the
otherError and formatted together. |
Modifier and Type | Method and Description |
---|---|
void |
ErrorDetail.format(int index,
java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter)
Formats this error along with other errors that are mergeable with this error.
|
protected abstract void |
ErrorDetail.formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter)
Formats the detail of this error message along with other errors that are mergeable with this
error.
|
Constructor and Description |
---|
Message(ErrorId errorId,
ErrorDetail<?> errorDetail) |
Message(GuiceInternal internalOnly,
ErrorId errorId,
ErrorDetail<?> errorDetail) |