Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
com.google.inject.internal |
Guice (sounds like like "juice")
|
com.google.inject.spi |
Guice service provider interface
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Message> |
CreationException.getErrorMessages()
Returns messages for the errors that caused this exception.
|
java.util.Collection<Message> |
ProvisionException.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 |
AbstractModule.addError(Message message) |
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.
|
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 | Method and Description |
---|---|
java.util.List<Message> |
Errors.getMessages() |
static java.util.Collection<Message> |
Errors.getMessagesFromThrowable(java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
Errors |
Errors.addMessage(Message message) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
Errors.format(java.lang.String heading,
java.util.Collection<Message> errorMessages)
Returns the formatted message for an exception with the specified messages.
|
static java.lang.Throwable |
Errors.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) |
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.
|
V |
DefaultElementVisitor.visit(Message message) |
V |
ElementVisitor.visit(Message message)
Visit an error message and the context in which it occured.
|
Copyright © 2006-2018 Google, Inc.. All Rights Reserved.