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:
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
-
Constructor Summary
Constructors Constructor Description ProvisionException(java.lang.Iterable<Message> messages)
Creates a ConfigurationException containingmessages
.ProvisionException(java.lang.String message)
ProvisionException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
Modifier and Type Method Description java.util.Collection<Message>
getErrorMessages()
Returns messages for the errors that caused this exception.java.lang.String
getMessage()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ProvisionException
Creates a ConfigurationException containingmessages
. -
ProvisionException
public ProvisionException(java.lang.String message, java.lang.Throwable cause) -
ProvisionException
public ProvisionException(java.lang.String message)
-
-
Method Details
-
getErrorMessages
Returns messages for the errors that caused this exception. -
getMessage
public java.lang.String getMessage()- Overrides:
getMessage
in classjava.lang.Throwable
-