The Spring Framework

org.springframework.beans
Class BeanInstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.beans.BeansException
                      extended by org.springframework.beans.FatalBeanException
                          extended by org.springframework.beans.BeanInstantiationException
All Implemented Interfaces:
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

Constructor Summary
BeanInstantiationException(Class beanClass, String msg)
          Create a new BeanInstantiationException.
BeanInstantiationException(Class beanClass, String msg, Throwable cause)
          Create a new BeanInstantiationException.
 
Method Summary
 Class getBeanClass()
          Return the offending bean class.
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getCause, getMessage, getMostSpecificCause, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanInstantiationException

public BeanInstantiationException(Class beanClass,
                                  String msg)
Create a new BeanInstantiationException.

Parameters:
beanClass - the offending bean class
msg - the detail message

BeanInstantiationException

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 Detail

getBeanClass

public Class getBeanClass()
Return the offending bean class.


The Spring Framework

Copyright © 2002-2007 The Spring Framework.