Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » [javadoc | source]
org.springframework.beans
public class: BeanInstantiationException [javadoc | source]
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:
    Serializable

Exception thrown when instantiation of a bean failed. Carries the offending bean class.
Constructor:
 public BeanInstantiationException(Class beanClass,
    String msg) 
    Create a new BeanInstantiationException.
    Parameters:
    beanClass - the offending bean class
    msg - the detail message
 public BeanInstantiationException(Class beanClass,
    String msg,
    Throwable cause) 
    Create a new BeanInstantiationException.
    Parameters:
    beanClass - the offending bean class
    msg - the detail message
    cause - the root cause
Method from org.springframework.beans.BeanInstantiationException Summary:
getBeanClass
Methods from org.springframework.beans.BeansException:
equals,   hashCode
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.BeanInstantiationException Detail:
 public Class getBeanClass() 
    Return the offending bean class.