|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.google.inject.ConfigurationException
public final class ConfigurationException
Thrown when a programming error such as a misplaced annotation, illegal binding, or unsupported scope is found. Clients should catch this exception, log it, and stop execution.
Constructor Summary | |
---|---|
ConfigurationException(Iterable<Message> messages)
Creates a ConfigurationException containing messages . |
Method Summary | ||
---|---|---|
Collection<Message> |
getErrorMessages()
Returns messages for the errors that caused this exception. |
|
String |
getMessage()
|
|
|
getPartialValue()
Returns a value that was only partially computed due to this exception. |
|
ConfigurationException |
withPartialValue(Object partialValue)
Returns a copy of this configuration exception with the specified partial value. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationException(Iterable<Message> messages)
messages
.
Method Detail |
---|
public ConfigurationException withPartialValue(Object partialValue)
public Collection<Message> getErrorMessages()
public <E> E getPartialValue()
null
if none was set. The type of the partial value is
specified by the throwing method.public String getMessage()
getMessage
in class Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |