org.elasticsearch.common.inject
Class ProvisionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.common.inject.ProvisionException
- All Implemented Interfaces:
- java.io.Serializable
public final class ProvisionException
- extends java.lang.RuntimeException
Indicates that there was a runtime failure while providing an instance.
- Since:
- 2.0
- See Also:
- Serialized Form
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 |
ProvisionException
public ProvisionException(java.lang.Iterable<Message> messages)
- Creates a ConfigurationException containing
messages
.
ProvisionException
public ProvisionException(java.lang.String message,
java.lang.Throwable cause)
ProvisionException
public ProvisionException(java.lang.String message)
getErrorMessages
public java.util.Collection<Message> getErrorMessages()
- Returns messages for the errors that caused this exception.
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable