Class BeanCreationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BeanInstantiationException, DependencyInjectionException

public abstract class BeanCreationException extends BeanContextException
A base class for exceptions that occurred during bean creation.
Since:
2.0.2
Author:
James Kleeh
See Also:
  • Constructor Details

    • BeanCreationException

      protected BeanCreationException(String message, Throwable cause)
      Parameters:
      message - The message
      cause - The throwable
    • BeanCreationException

      protected BeanCreationException(String message)
      Parameters:
      message - The message
    • BeanCreationException

      protected BeanCreationException(BeanResolutionContext resolutionContext, String message)
      Parameters:
      resolutionContext - The resolution context
      message - The message
    • BeanCreationException

      protected BeanCreationException(BeanResolutionContext resolutionContext, String message, Throwable cause)
      Parameters:
      resolutionContext - The resolution context
      message - The message
      cause - The throwable
    • BeanCreationException

      protected BeanCreationException(BeanType<T> beanDefinition, String message, Throwable cause)
      Type Parameters:
      T - The bean type
      Parameters:
      beanDefinition - The bean definition
      message - The message
      cause - The throwable
    • BeanCreationException

      protected BeanCreationException(BeanType<T> beanDefinition, String message)
      Type Parameters:
      T - The bean type
      Parameters:
      beanDefinition - The bean definition
      message - The message
  • Method Details

    • getRootBeanType

      public Optional<BeanType> getRootBeanType()
      Returns:
      The reference to the root bean.