|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.FatalBeanException
org.springframework.beans.factory.BeanCreationException
public class BeanCreationException
Exception thrown when a BeanFactory encounters an error when attempting to create a bean from a bean definition.
| Constructor Summary | |
|---|---|
BeanCreationException(String msg)
Create a new BeanCreationException. |
|
BeanCreationException(String beanName,
String msg)
Create a new BeanCreationException. |
|
BeanCreationException(String resourceDescription,
String beanName,
String msg)
Create a new BeanCreationException. |
|
BeanCreationException(String resourceDescription,
String beanName,
String msg,
Throwable ex)
Create a new BeanCreationException. |
|
BeanCreationException(String beanName,
String msg,
Throwable ex)
Create a new BeanCreationException. |
|
BeanCreationException(String msg,
Throwable ex)
Create a new BeanCreationException. |
|
| Method Summary | |
|---|---|
String |
getBeanName()
Return the name of the bean requested, if any. |
String |
getResourceDescription()
Return the description of the resource that the bean definition came from, if any. |
| Methods inherited from class org.springframework.core.NestedRuntimeException |
|---|
contains, getCause, getMessage, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BeanCreationException(String msg)
msg - the detail message
public BeanCreationException(String msg,
Throwable ex)
msg - the detail messageex - the root cause
public BeanCreationException(String beanName,
String msg)
beanName - the name of the bean requestedmsg - the detail message
public BeanCreationException(String beanName,
String msg,
Throwable ex)
beanName - the name of the bean requestedmsg - the detail messageex - the root cause
public BeanCreationException(String resourceDescription,
String beanName,
String msg)
resourceDescription - description of the resource
that the bean definition came frombeanName - the name of the bean requestedmsg - the detail message
public BeanCreationException(String resourceDescription,
String beanName,
String msg,
Throwable ex)
resourceDescription - description of the resource
that the bean definition came frombeanName - the name of the bean requestedmsg - the detail messageex - the root cause| Method Detail |
|---|
public String getResourceDescription()
public String getBeanName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||