|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 cause)
Create a new BeanCreationException. |
|
BeanCreationException(String beanName,
String msg,
Throwable cause)
Create a new BeanCreationException. |
|
BeanCreationException(String msg,
Throwable cause)
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, getRootCause, 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 messagepublic BeanCreationException(String msg, Throwable cause)
msg
- the detail messagecause
- the root causepublic BeanCreationException(String beanName, String msg)
beanName
- the name of the bean requestedmsg
- the detail messagepublic BeanCreationException(String beanName, String msg, Throwable cause)
beanName
- the name of the bean requestedmsg
- the detail messagecause
- the root causepublic 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 messagepublic BeanCreationException(String resourceDescription, String beanName, String msg, Throwable cause)
resourceDescription
- description of the resource
that the bean definition came frombeanName
- the name of the bean requestedmsg
- the detail messagecause
- the root causeMethod Detail |
---|
public String getResourceDescription()
public String getBeanName()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |