Class CreationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CreationException
    extends InjectionException
    Thrown when during (post-)construction of a dependency a problem occurs. Constructors that throw an exception, setters or post constructors which trigger further dependency construction which eventually need the current object under construction (causing a loop) and so on.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CreationException​(java.lang.String message)
      Constructs a new instance.
      CreationException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new instance.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 Detail

      • CreationException

        public CreationException​(java.lang.String message,
                                 java.lang.Throwable cause)
        Constructs a new instance.
        Parameters:
        message - a message, cannot be null
        cause - a Throwable to use as cause
      • CreationException

        public CreationException​(java.lang.String message)
        Constructs a new instance.
        Parameters:
        message - a message, cannot be null