Top Description Constructors
org.springframework.beans.factory

public Class BeanInitializationException

extends FatalBeanException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.beans.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#setBeanFactory, InitializingBean#afterPropertiesSet

Constructor Summary

AccessConstructor and Description
public
BeanInitializationException(String
the detail message
msg
)

Create a new BeanInitializationException with the specified message.

public
BeanInitializationException(String
the detail message
msg
,
Throwable
the root cause
cause
)

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

Constructor Detail

BeanInitializationExceptionback to summary
public BeanInitializationException(String msg)

Create a new BeanInitializationException with the specified message.

Parameters
msg:String

the detail message

BeanInitializationExceptionback to summary
public BeanInitializationException(String msg, Throwable cause)

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

Parameters
msg:String

the detail message

cause:Throwable

the root cause