Uses of Class
com.google.inject.spi.Message
Packages that use Message
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Guice (sounds like "juice")
Guice service provider interface
-
Uses of Message in com.google.inject
Fields in com.google.inject with type parameters of type MessageModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableSet<Message>
ConfigurationException.messages
private final com.google.common.collect.ImmutableSet<Message>
CreationException.messages
private final com.google.common.collect.ImmutableSet<Message>
ProvisionException.messages
Methods in com.google.inject that return types with arguments of type MessageModifier and TypeMethodDescriptionConfigurationException.getErrorMessages()
Returns messages for the errors that caused this exception.CreationException.getErrorMessages()
Returns messages for the errors that caused this exception.ProvisionException.getErrorMessages()
Returns messages for the errors that caused this exception.Methods in com.google.inject with parameters of type MessageModifier and TypeMethodDescriptionprotected void
void
Records an error message to be presented to the user at a later time.protected final void
Constructor parameters in com.google.inject with type arguments of type MessageModifierConstructorDescriptionConfigurationException
(Iterable<Message> messages) Creates a ConfigurationException containingmessages
.CreationException
(Collection<Message> messages) Creates a CreationException containingmessages
.ProvisionException
(Iterable<Message> messages) Creates a ProvisionException containingmessages
. -
Uses of Message in com.google.inject.internal
Fields in com.google.inject.internal with type parameters of type MessageModifier and TypeFieldDescriptionErrors.errors
null unless (root == this) and error messages exist.private final com.google.common.collect.ImmutableList<Message>
InternalProvisionException.errors
Methods in com.google.inject.internal that return MessageModifier and TypeMethodDescriptionstatic Message
Creates a new Message without a cause.static Message
Creates a new Message with the given cause.static Message
Messages.create
(ErrorId errorId, Throwable cause, List<Object> sources, String messageFormat, Object... arguments) Creates a new Message with the given cause and a binding source stack.(package private) static Message
Messages.mergeSources
(List<Object> sources, Message message) Prepends the list of sources to the givenMessage
Methods in com.google.inject.internal that return types with arguments of type MessageModifier and TypeMethodDescription(package private) com.google.common.collect.ImmutableList<Message>
InternalProvisionException.getErrors()
Errors.getMessages()
static Collection<Message>
Errors.getMessagesFromThrowable
(Throwable throwable) Methods in com.google.inject.internal with parameters of type MessageModifier and TypeMethodDescriptionvoid
Errors.addMessage
(Message message) void
Handles a user-reported error.(package private) static Message
Messages.mergeSources
(List<Object> sources, Message message) Prepends the list of sources to the givenMessage
Method parameters in com.google.inject.internal with type arguments of type MessageModifier and TypeMethodDescriptionstatic 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 inmessages
.Errors.merge
(Collection<Message> messages) Constructors in com.google.inject.internal with parameters of type MessageConstructor parameters in com.google.inject.internal with type arguments of type Message -
Uses of Message in com.google.inject.spi
Methods in com.google.inject.spi that return MessageModifier and TypeMethodDescriptionMessage.withSource
(List<Object> newSources) Returns a copy of thisMessage
with its sources replaced.Methods in com.google.inject.spi that return types with arguments of type MessageModifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList<Message>
BindingSourceRestriction.check
(GuiceInternal guiceInternal, List<Element> elements) Returns all the restriction violations found on the given Module Elements, as error messages.private static com.google.common.collect.ImmutableList<Message>
private static com.google.common.collect.ImmutableList<Message>
Methods in com.google.inject.spi with parameters of type MessageModifier and TypeMethodDescriptionvoid
void
Records an error message to be presented to the user at a later time.Visit an error message and the context in which it occured.