Exception thrown when a BeanFactory encounters an invalid bean definition:
e.g. in case of incomplete or contradictory bean metadata.
| Constructor: |
public BeanDefinitionStoreException(String msg) {
super(msg);
}
Create a new BeanDefinitionStoreException. Parameters:
msg - the detail message (used as exception message as-is)
|
public BeanDefinitionStoreException(String msg,
Throwable cause) {
super(msg, cause);
}
Create a new BeanDefinitionStoreException. Parameters:
msg - the detail message (used as exception message as-is)
cause - the root cause (may be null)
|
public BeanDefinitionStoreException(String resourceDescription,
String msg) {
super(msg);
this.resourceDescription = resourceDescription;
}
Create a new BeanDefinitionStoreException. Parameters:
resourceDescription - description of the resource that the bean definition came from
msg - the detail message (used as exception message as-is)
|
public BeanDefinitionStoreException(String resourceDescription,
String msg,
Throwable cause) {
super(msg, cause);
this.resourceDescription = resourceDescription;
}
Create a new BeanDefinitionStoreException. Parameters:
resourceDescription - description of the resource that the bean definition came from
msg - the detail message (used as exception message as-is)
cause - the root cause (may be null)
|
public BeanDefinitionStoreException(String resourceDescription,
String beanName,
String msg) {
this(resourceDescription, beanName, msg, null);
}
Create a new BeanDefinitionStoreException. Parameters:
resourceDescription - description of the resource that the bean definition came from
beanName - the name of the bean requested
msg - the detail message (appended to an introductory message that indicates
the resource and the name of the bean)
|
public BeanDefinitionStoreException(String resourceDescription,
String beanName,
String msg,
Throwable cause) {
super("Invalid bean definition with name '" + beanName + "' defined in " + resourceDescription + ": " + msg, cause);
this.resourceDescription = resourceDescription;
this.beanName = beanName;
}
Create a new BeanDefinitionStoreException. Parameters:
resourceDescription - description of the resource that the bean definition came from
beanName - the name of the bean requested
msg - the detail message (appended to an introductory message that indicates
the resource and the name of the bean)
cause - the root cause (may be null)
|