Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
|
com.google.inject.internal |
Guice (sounds like "juice")
|
com.google.inject.spi |
Guice service provider interface
|
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableSet<Message> |
ProvisionException.messages |
private com.google.common.collect.ImmutableSet<Message> |
CreationException.messages |
private com.google.common.collect.ImmutableSet<Message> |
ConfigurationException.messages |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Message> |
ProvisionException.getErrorMessages()
Returns messages for the errors that caused this exception.
|
java.util.Collection<Message> |
CreationException.getErrorMessages()
Returns messages for the errors that caused this exception.
|
java.util.Collection<Message> |
ConfigurationException.getErrorMessages()
Returns messages for the errors that caused this exception.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PrivateModule.addError(Message message) |
void |
Binder.addError(Message message)
Records an error message to be presented to the user at a later time.
|
protected void |
AbstractModule.addError(Message message) |
Constructor and Description |
---|
ConfigurationException(java.lang.Iterable<Message> messages)
Creates a ConfigurationException containing
messages . |
CreationException(java.util.Collection<Message> messages)
Creates a CreationException containing
messages . |
ProvisionException(java.lang.Iterable<Message> messages)
Creates a ProvisionException containing
messages . |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableList<Message> |
InternalProvisionException.errors |
private java.util.List<Message> |
Errors.errors
null unless (root == this) and error messages exist.
|
Modifier and Type | Method and Description |
---|---|
static Message |
Messages.create(java.lang.String messageFormat,
java.lang.Object... arguments)
Creates a new Message without a cause.
|
static Message |
Messages.create(java.lang.Throwable cause,
java.util.List<java.lang.Object> sources,
java.lang.String messageFormat,
java.lang.Object... arguments)
Creates a new Message with the given cause and a binding source stack.
|
static Message |
Messages.create(java.lang.Throwable cause,
java.lang.String messageFormat,
java.lang.Object... arguments)
Creates a new Message with the given cause.
|
(package private) static Message |
Messages.mergeSources(java.util.List<java.lang.Object> sources,
Message message)
Prepends the list of sources to the given
Message |
Modifier and Type | Method and Description |
---|---|
(package private) com.google.common.collect.ImmutableList<Message> |
InternalProvisionException.getErrors() |
java.util.List<Message> |
Errors.getMessages() |
static java.util.Collection<Message> |
Errors.getMessagesFromThrowable(java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
void |
EncounterImpl.addError(Message message) |
Errors |
Errors.addMessage(Message message) |
void |
ErrorHandler.handle(Message message)
Handles a user-reported error.
|
(package private) static Message |
Messages.mergeSources(java.util.List<java.lang.Object> sources,
Message message)
Prepends the list of sources to the given
Message |
java.lang.Boolean |
MessageProcessor.visit(Message message) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
Messages.formatMessages(java.lang.String heading,
java.util.Collection<Message> errorMessages)
Returns the formatted message for an exception with the specified messages.
|
static java.lang.Throwable |
Messages.getOnlyCause(java.util.Collection<Message> messages)
Returns the cause throwable if there is exactly one cause in
messages . |
Errors |
Errors.merge(java.util.Collection<Message> messages) |
Constructor and Description |
---|
InternalProvisionException(Message error) |
Constructor and Description |
---|
InternalProvisionException(java.lang.Iterable<Message> errors) |
Modifier and Type | Method and Description |
---|---|
void |
TypeEncounter.addError(Message message)
Records an error message to be presented to the user at a later time.
|
void |
Elements.RecordingBinder.addError(Message message) |
V |
ElementVisitor.visit(Message message)
Visit an error message and the context in which it occured.
|
V |
DefaultElementVisitor.visit(Message message) |