Class CreationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.common.inject.CreationException
All Implemented Interfaces:
java.io.Serializable

public class CreationException
extends java.lang.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.
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    CreationException​(java.util.Collection<Message> messages)
    Creates a CreationException containing messages.
  • 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()  

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CreationException

      public CreationException​(java.util.Collection<Message> messages)
      Creates a CreationException containing messages.
  • Method Details

    • 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 class java.lang.Throwable