org.springframework.beans.factory
Class NoSuchBeanDefinitionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.springframework.core.NestedRuntimeException
                          |
                          +--org.springframework.beans.BeansException
                                |
                                +--org.springframework.beans.factory.NoSuchBeanDefinitionException

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
Version: $Id: NoSuchBeanDefinitionException.java,v 1.3 2003/11/13 11:51:25 jhoeller Exp $

Constructor Summary
NoSuchBeanDefinitionException(String name, String message)
          Create new NoSuchBeanDefinitionException.
NoSuchBeanDefinitionException(Class type, String message)
          Create new NoSuchBeanDefinitionException.

Method Summary
 StringgetBeanName()
          Return the name of the missing bean.
 ClassgetBeanType()
          Return the required type of bean.

Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage, printStackTrace, printStackTrace

Methods inherited from class java.lang.Throwable
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, toString, fillInStackTrace, initCause

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals

Constructor Detail

NoSuchBeanDefinitionException

public NoSuchBeanDefinitionException(String name, String message)
Create new NoSuchBeanDefinitionException.
Parameters:
name - the name of the missing bean
message - further, detailed message describing the problem.

NoSuchBeanDefinitionException

public NoSuchBeanDefinitionException(Class type, String message)
Create new NoSuchBeanDefinitionException.
Parameters:
type - required type of bean
message - further, detailed message describing the problem.
Method Detail

getBeanName

public String getBeanName()
Return the name of the missing bean.

getBeanType

public Class getBeanType()
Return the required type of bean.

Association Links

to Class java.lang.String

Name of the missing bean

to Class java.lang.Class

Required bean type