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
public class CreationException
- extends RuntimeException
Thrown when errors occur while creating a Injector
. Includes a list of encountered
errors. Clients should catch this exception, log it, and stop execution.
- Author:
- crazybob@google.com (Bob Lee)
- See Also:
- Serialized Form
CreationException
public CreationException(Collection<Message> messages)
- Creates a CreationException containing
messages
.
getErrorMessages
public Collection<Message> getErrorMessages()
- Returns messages for the errors that caused this exception.
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
Copyright © 2009-2012. All Rights Reserved.