addError() statements:
try {
bindPropertiesFromFile();
} catch (IOException e) {
addError(e);
}
| Modifier and Type | Field and Description |
|---|---|
| private final ErrorDetail | |
| private final ErrorId | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| private | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | acceptVisitor(ElementVisitor<T>
to call back on visitor)Implements com. |
| public void | applyTo(Binder
to apply configuration element to binder)Implements com. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public Throwable | getCause()
Returns the throwable that caused this message, or |
| public ErrorDetail | |
| public String | |
| public String | getSource()
Implements com. |
| public List | |
| public int | |
| public String | |
| public Message | |
| private Object | writeReplace()
When serialized, we convert the error detail to a |
| errorDetail | back to summary |
|---|---|
| private final ErrorDetail<?> errorDetail | |
| errorId | back to summary |
|---|---|
| private final ErrorId errorId | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Message | back to summary |
|---|---|
public Message(GuiceInternal internalOnly, ErrorId errorId, ErrorDetail<?> errorDetail)
| |
| Message | back to summary |
|---|---|
| private Message(ErrorId errorId, ErrorDetail<?> errorDetail) | |
| Message | back to summary |
|---|---|
public Message(ErrorId errorId, List<Object> sources, String message, Throwable cause)
| |
| Message | back to summary |
|---|---|
public Message(List<Object> sources, String message, Throwable cause)
| |
| Message | back to summary |
|---|---|
public Message(String message, Throwable cause)
| |
| Message | back to summary |
|---|---|
| public Message(Object source, String message) | |
| Message | back to summary |
|---|---|
| public Message(String message) | |
| acceptVisitor | back to summary |
|---|---|
| public <T> T acceptVisitor(ElementVisitor<T> visitor) Implements com. Doc from com. Accepts an element visitor. Invokes the visitor method specific to this element's type.
| |
| applyTo | back to summary |
|---|---|
| public void applyTo(Binder binder) Implements com. Doc from com. Writes this module element to the given binder (optional operation). | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCause | back to summary |
|---|---|
| public Throwable getCause() Returns the throwable that caused this message, or
| |
| getErrorDetail | back to summary |
|---|---|
| public ErrorDetail Returns details about this error message.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Gets the error message text. | |
| getSource | back to summary |
|---|---|
| public String getSource() Implements com. Doc from com. Returns an arbitrary object containing information about the "place" where this element was configured. Used by Guice in the production of descriptive error messages. Tools might specially handle types they know about;
| |
| getSources | back to summary |
|---|---|
public List
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| withSource | back to summary |
|---|---|
| public Message withSource(List<Object> newSources) Returns a copy of this
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() throws ObjectStreamException When serialized, we convert the error detail to a | |