| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private List | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BeanCreationException(String
the detail message msg, Throwable the root cause cause)Create a new BeanCreationException. |
| public | BeanCreationException(String
the name of the bean requested beanName, String the detail message msg)Create a new BeanCreationException. |
| public | BeanCreationException(String
the name of the bean requested beanName, String the detail message msg, Throwable the root cause cause)Create a new BeanCreationException. |
| public | BeanCreationException(String
description of the resource
that the bean definition came from resourceDescription, String the name of the bean requested beanName, String the detail message msg)Create a new BeanCreationException. |
| public | BeanCreationException(String
description of the resource
that the bean definition came from resourceDescription, String the name of the bean requested beanName, String the detail message msg, Throwable the root cause cause)Create a new BeanCreationException. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addRelatedCause(Throwable
the related cause to add ex)Add a related cause to this bean creation exception, not being a direct cause of the failure but having occurred earlier in the creation of the same bean instance. |
| public boolean | contains(Class<?>
the exception type to look for exClass)Overrides org. |
| public String | |
| public Throwable[] | Returns: the array of related causes, ornull if noneReturn the related causes, if any. |
| public String | getResourceDescription()
Return the description of the resource that the bean definition came from, if any. |
| public void | printStackTrace(PrintStream
PrintStream to use for outputOverrides java. |
| public void | printStackTrace(PrintWriter
PrintWriter to use for outputOverrides java. |
| public String |
| beanName | back to summary |
|---|---|
| private final String beanName
| |
| relatedCauses | back to summary |
|---|---|
| private List<Throwable> relatedCauses
| |
| resourceDescription | back to summary |
|---|---|
| private final String resourceDescription
| |
| BeanCreationException | back to summary |
|---|---|
| public BeanCreationException(String msg) Create a new BeanCreationException.
| |
| BeanCreationException | back to summary |
|---|---|
| public BeanCreationException(String msg, Throwable cause) Create a new BeanCreationException. | |
| BeanCreationException | back to summary |
|---|---|
| public BeanCreationException(String beanName, String msg) Create a new BeanCreationException. | |
| BeanCreationException | back to summary |
|---|---|
| public BeanCreationException(String beanName, String msg, Throwable cause) Create a new BeanCreationException. | |
| BeanCreationException | back to summary |
|---|---|
| public BeanCreationException(String resourceDescription, String beanName, String msg) Create a new BeanCreationException. | |
| BeanCreationException | back to summary |
|---|---|
| public BeanCreationException(String resourceDescription, String beanName, String msg, Throwable cause) Create a new BeanCreationException. | |
| addRelatedCause | back to summary |
|---|---|
| public void addRelatedCause(Throwable ex) Add a related cause to this bean creation exception, not being a direct cause of the failure but having occurred earlier in the creation of the same bean instance.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Class<?> exClass) Overrides org. Doc from org. Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type. | |
| getBeanName | back to summary |
|---|---|
| public String getBeanName() Return the name of the bean requested, if any.
| |
| getRelatedCauses | back to summary |
|---|---|
| public Throwable[] getRelatedCauses() Return the related causes, if any. | |
| getResourceDescription | back to summary |
|---|---|
| public String getResourceDescription() Return the description of the resource that the bean definition came from, if any.
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintStream ps) Overrides java. Doc from java. Prints this throwable and its backtrace to the specified print stream.
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace(PrintWriter pw) Overrides java. Doc from java. Prints this throwable and its backtrace to the specified print writer.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |