Class BeanDefinitionGenerationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.beans.factory.generator.BeanDefinitionGenerationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BeanRegistrationContributionNotFoundException
Thrown when a bean definition could not be generated.
- Since:
- 6.0
- Author:
- Stephane Nicoll
- See Also:
-
Constructor Summary
ConstructorDescriptionBeanDefinitionGenerationException
(String beanName, BeanDefinition beanDefinition, String message) BeanDefinitionGenerationException
(String beanName, BeanDefinition beanDefinition, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturn the bean definition that could not be generated.Return the bean name that could not be generated.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanDefinitionGenerationException
public BeanDefinitionGenerationException(String beanName, BeanDefinition beanDefinition, String message, Throwable cause) -
BeanDefinitionGenerationException
public BeanDefinitionGenerationException(String beanName, BeanDefinition beanDefinition, String message)
-
-
Method Details
-
getBeanName
Return the bean name that could not be generated.- Returns:
- the bean name
-
getBeanDefinition
Return the bean definition that could not be generated.- Returns:
- the bean definition
-