spring-framework / org.springframework.beans.factory / BeanInitializationException

BeanInitializationException

open class BeanInitializationException : FatalBeanException

Exception that a bean implementation is suggested to throw if its own factory-aware initialization code fails. BeansExceptions thrown by bean factory methods themselves should simply be propagated as-is.

Note that afterPropertiesSet() or a custom "init-method" can throw any exception.

Author
Juergen Hoeller

Since
13.11.2003

See Also
BeanFactoryAware#setBeanFactoryInitializingBean#afterPropertiesSet

Constructors

<init>

BeanInitializationException(msg: String)

Create a new BeanInitializationException with the specified message.

BeanInitializationException(msg: String, cause: Throwable)

Create a new BeanInitializationException with the specified message and root cause.