com.interface21.beans.factory
Class NoSuchBeanDefinitionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.interface21.core.NestedRuntimeException
                          |
                          +--com.interface21.beans.BeansException
                                |
                                +--com.interface21.beans.factory.NoSuchBeanDefinitionException
All Implemented Interfaces:
HasRootCause, java.io.Serializable

public class NoSuchBeanDefinitionException
extends BeansException

Exception thrown when a BeanFactory is asked for a bean instance name for which it cannot find a definition.

Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
NoSuchBeanDefinitionException(java.lang.String name)
          Creates new NoSuchBeanDefinitionException..
NoSuchBeanDefinitionException(java.lang.String name, java.lang.String message)
          Creates new NoSuchBeanDefinitionException..
 
Method Summary
 java.lang.String getBeanName()
          Return the name of the missing bean
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchBeanDefinitionException

public NoSuchBeanDefinitionException(java.lang.String name)
Creates new NoSuchBeanDefinitionException..
Parameters:
name - the name of the missing bean

NoSuchBeanDefinitionException

public NoSuchBeanDefinitionException(java.lang.String name,
                                     java.lang.String message)
Creates new NoSuchBeanDefinitionException..
Parameters:
name - the name of the missing bean
message - further, detailed message describing the problem.
Method Detail

getBeanName

public java.lang.String getBeanName()
Return the name of the missing bean
Returns:
the name of the missing bean


Rod Johnson and Spring contributors 2001-2003.