public class NoSuchBeanDefinitionException extends BeansException
Constructor and Description |
---|
NoSuchBeanDefinitionException(Class type)
Create a new NoSuchBeanDefinitionException.
|
NoSuchBeanDefinitionException(Class type,
String message)
Create a new NoSuchBeanDefinitionException.
|
NoSuchBeanDefinitionException(Class type,
String dependencyDescription,
String message)
Create a new NoSuchBeanDefinitionException.
|
NoSuchBeanDefinitionException(String name)
Create a new NoSuchBeanDefinitionException.
|
NoSuchBeanDefinitionException(String name,
String message)
Create a new NoSuchBeanDefinitionException.
|
Modifier and Type | Method and Description |
---|---|
String |
getBeanName()
Return the name of the missing bean,
if it was a lookup by name that failed.
|
Class |
getBeanType()
Return the required type of bean,
if it was a lookup by type that failed.
|
equals, hashCode
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NoSuchBeanDefinitionException(String name)
name
- the name of the missing beanpublic NoSuchBeanDefinitionException(String name, String message)
name
- the name of the missing beanmessage
- detailed message describing the problempublic NoSuchBeanDefinitionException(Class type)
type
- required type of beanpublic NoSuchBeanDefinitionException(Class type, String message)
type
- required type of beanmessage
- detailed message describing the problempublic NoSuchBeanDefinitionException(Class type, String dependencyDescription, String message)
type
- required type of beandependencyDescription
- a description of the originating dependencymessage
- detailed message describing the problemCopyright © 2014. All rights reserved.