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()
-
-
-
Constructor Detail
-
ProvisionException
public ProvisionException(java.lang.Iterable<Message> messages)
Creates a ConfigurationException containingmessages
.
-
ProvisionException
public ProvisionException(java.lang.String message, java.lang.Throwable cause)
-
ProvisionException
public ProvisionException(java.lang.String message)
-
-
Method Detail
-
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 classjava.lang.Throwable
-
-