public class BeanInstantiationException extends FatalBeanException
| 构造器和说明 |
|---|
BeanInstantiationException(Class<?> beanClass,
String msg)
Create a new BeanInstantiationException.
|
BeanInstantiationException(Class<?> beanClass,
String msg,
Throwable cause)
Create a new BeanInstantiationException.
|
BeanInstantiationException(Constructor<?> constructor,
String msg,
Throwable cause)
Create a new BeanInstantiationException.
|
BeanInstantiationException(Method constructingMethod,
String msg,
Throwable cause)
Create a new BeanInstantiationException.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Class<?> |
getBeanClass()
Return the offending bean class (never
null). |
Method |
getConstructingMethod()
Return the delegate for bean construction purposes, if known.
|
Constructor<?> |
getConstructor()
Return the offending constructor, if known.
|
contains, getMessage, getMostSpecificCause, getRootCausepublic BeanInstantiationException(Class<?> beanClass, String msg)
beanClass - the offending bean classmsg - the detail messagepublic BeanInstantiationException(Class<?> beanClass, String msg, @Nullable Throwable cause)
beanClass - the offending bean classmsg - the detail messagecause - the root causepublic BeanInstantiationException(Constructor<?> constructor, String msg, @Nullable Throwable cause)
constructor - the offending constructormsg - the detail messagecause - the root causepublic BeanInstantiationException(Method constructingMethod, String msg, @Nullable Throwable cause)
constructingMethod - the delegate for bean construction purposes
(typically, but not necessarily, a static factory method)msg - the detail messagecause - the root causepublic Class<?> getBeanClass()
null).@Nullable public Constructor<?> getConstructor()
null in case of a
factory method or in case of default instantiation@Nullable public Method getConstructingMethod()
null in case of constructor-based instantiation