Package 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:
Serializable
Indicates that there was a runtime failure while providing an instance.
- Since:
- 2.0
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionProvisionException(Iterable<Message> messages)
Creates a ConfigurationException containingmessages
.ProvisionException(String message)
ProvisionException(String message, Throwable cause)
-
Method Summary
Modifier and TypeMethodDescriptionReturns messages for the errors that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProvisionException
Creates a ConfigurationException containingmessages
. -
ProvisionException
-
ProvisionException
-
-
Method Details
-
getErrorMessages
Returns messages for the errors that caused this exception. -
getMessage
- Overrides:
getMessage
in classThrowable
-