org.elasticsearch.common.inject
Class CreationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
CreationException(Collection<Message> messages)
          Creates a CreationException containing messages.
 
Method Summary
 Collection<Message> getErrorMessages()
          Returns messages for the errors that caused this exception.
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreationException

public CreationException(Collection<Message> messages)
Creates a CreationException containing messages.

Method Detail

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.