Package org.elasticsearch.common.inject
Class CreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.common.inject.CreationException
- All Implemented Interfaces:
Serializable
Thrown when errors occur while creating a
Injector
. Includes a list of encountered
errors. Clients should catch this exception, log it, and stop execution.- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionCreationException(Collection<Message> messages)
Creates a CreationException containingmessages
. -
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
-
CreationException
Creates a CreationException containingmessages
.
-
-
Method Details
-
getErrorMessages
Returns messages for the errors that caused this exception. -
getMessage
- Overrides:
getMessage
in classThrowable
-