org.elasticsearch.common.inject
Class ProvisionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.elasticsearch.common.inject.ProvisionException
All Implemented Interfaces:
Serializable

public final class ProvisionException
extends RuntimeException

Indicates that there was a runtime failure while providing an instance.

Since:
2.0
Author:
kevinb@google.com (Kevin Bourrillion), jessewilson@google.com (Jesse Wilson)
See Also:
Serialized Form

Constructor Summary
ProvisionException(Iterable<Message> messages)
          Creates a ConfigurationException containing messages.
ProvisionException(String message)
           
ProvisionException(String message, Throwable cause)
           
 
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

ProvisionException

public ProvisionException(Iterable<Message> messages)
Creates a ConfigurationException containing messages.


ProvisionException

public ProvisionException(String message,
                          Throwable cause)

ProvisionException

public ProvisionException(String message)
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.