public class

BeanInstantiationException

extends FatalBeanException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.beans.BeansException
             ↳ org.springframework.beans.FatalBeanException
               ↳ org.springframework.beans.BeanInstantiationException

Class Overview

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

Summary

Public Constructors
BeanInstantiationException(Class beanClass, String msg)
Create a new BeanInstantiationException.
BeanInstantiationException(Class beanClass, String msg, Throwable cause)
Create a new BeanInstantiationException.
Public Methods
Class getBeanClass()
Return the offending bean class.
[Expand]
Inherited Methods
From class org.springframework.beans.BeansException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public BeanInstantiationException (Class beanClass, String msg)

Also: SpringBeans

Create a new BeanInstantiationException.

Parameters
beanClass the offending bean class
msg the detail message

public BeanInstantiationException (Class beanClass, String msg, Throwable cause)

Also: SpringBeans

Create a new BeanInstantiationException.

Parameters
beanClass the offending bean class
msg the detail message
cause the root cause

Public Methods

public Class getBeanClass ()

Also: SpringBeans

Return the offending bean class.