package org.springframework.beans.factory;
Exception thrown when a BeanFactory encounters an error when
attempting to create a bean from a bean definition.
- Author(s):
- Juergen Hoeller
Create a new BeanCreationException.
- Parameters:
msg the detail message
Create a new BeanCreationException.
- Parameters:
msg the detail messageex the root cause
Create a new BeanCreationException.
- Parameters:
beanName the name of the bean requestedmsg the detail message
Create a new BeanCreationException.
- Parameters:
beanName the name of the bean requestedmsg the detail messageex the root cause
super("Error creating bean with name '" + beanName + "': " + msg, ex); Create a new BeanCreationException.
- Parameters:
resourceDescription description of the resource
that the bean definition came frombeanName the name of the bean requestedmsg the detail message
this(resourceDescription, beanName, msg, null);
Create a new BeanCreationException.
- Parameters:
resourceDescription description of the resource
that the bean definition came frombeanName the name of the bean requestedmsg the detail messageex the root cause
super("Error creating bean with name '" + beanName + "' defined in " + resourceDescription + ": " + msg, ex); Return the description of the resource that the bean
definition came from, if any.
Return the name of the bean requested, if any.