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 | Method and Description |
---|---|
Collection<Message> |
ProvisionException.getErrorMessages()
Returns messages for the errors that caused this exception.
|
Collection<Message> |
ConfigurationException.getErrorMessages()
Returns messages for the errors that caused this exception.
|
Collection<Message> |
CreationException.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(Iterable<Message> messages)
Creates a ConfigurationException containing
messages . |
CreationException(Collection<Message> messages)
Creates a CreationException containing
messages . |
ProvisionException(Iterable<Message> messages)
Creates a ProvisionException containing
messages . |
Modifier and Type | Method and Description |
---|---|
static Message |
Messages.create(String messageFormat,
Object... arguments)
Creates a new Message without a cause.
|
static Message |
Messages.create(Throwable cause,
List<Object> sources,
String messageFormat,
Object... arguments)
Creates a new Message with the given cause and a binding source stack.
|
static Message |
Messages.create(Throwable cause,
String messageFormat,
Object... arguments)
Creates a new Message with the given cause.
|
Modifier and Type | Method and Description |
---|---|
List<Message> |
Errors.getMessages() |
static Collection<Message> |
Errors.getMessagesFromThrowable(Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
Errors |
Errors.addMessage(Message message) |
Modifier and Type | Method and Description |
---|---|
static String |
Messages.formatMessages(String heading,
Collection<Message> errorMessages)
Returns the formatted message for an exception with the specified messages.
|
static Throwable |
Messages.getOnlyCause(Collection<Message> messages)
Returns the cause throwable if there is exactly one cause in
messages . |
Errors |
Errors.merge(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 |
ElementVisitor.visit(Message message)
Visit an error message and the context in which it occured.
|
V |
DefaultElementVisitor.visit(Message message) |
Copyright © 2006–2018 Google, Inc.. All rights reserved.