spring-framework / org.springframework.beans / BeanInstantiationException

BeanInstantiationException

open class BeanInstantiationException : FatalBeanException

Exception thrown when instantiation of a bean failed. Carries the offending bean class.

Author
Juergen Hoeller

Since
1.2.8

Constructors

<init>

BeanInstantiationException(beanClass: Class<*>, msg: String)
BeanInstantiationException(beanClass: Class<*>, msg: String, cause: Throwable)
BeanInstantiationException(constructor: Constructor<*>, msg: String, cause: Throwable)
BeanInstantiationException(constructingMethod: Method, msg: String, cause: Throwable)

Create a new BeanInstantiationException.

Functions

getBeanClass

open fun getBeanClass(): Class<*>

Return the offending bean class (never null).

getConstructingMethod

open fun getConstructingMethod(): Method

Return the delegate for bean construction purposes, if known.

getConstructor

open fun getConstructor(): Constructor<*>

Return the offending constructor, if known.