org.springframework.beans
Class BeanInstantiationException
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
- All Implemented Interfaces:
- java.io.Serializable
public class BeanInstantiationException
- extends FatalBeanException
Exception thrown when instantiation of a bean failed.
Carries the offending bean class.
- Since:
- 1.2.8
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
Field Summary |
private java.lang.Class |
beanClass
|
Constructor Summary |
BeanInstantiationException(java.lang.Class beanClass,
java.lang.String msg)
Create a new BeanInstantiationException. |
BeanInstantiationException(java.lang.Class beanClass,
java.lang.String msg,
java.lang.Throwable cause)
Create a new BeanInstantiationException. |
Method Summary |
java.lang.Class |
getBeanClass()
Return the offending bean class. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
beanClass
private java.lang.Class beanClass
BeanInstantiationException
public BeanInstantiationException(java.lang.Class beanClass,
java.lang.String msg)
- Create a new BeanInstantiationException.
- Parameters:
beanClass
- the offending bean classmsg
- the detail message
BeanInstantiationException
public BeanInstantiationException(java.lang.Class beanClass,
java.lang.String msg,
java.lang.Throwable cause)
- Create a new BeanInstantiationException.
- Parameters:
beanClass
- the offending bean classmsg
- the detail messagecause
- the root cause
getBeanClass
public java.lang.Class getBeanClass()
- Return the offending bean class.