public class BeanInstantiationException extends FatalBeanException
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
equals, hashCode
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BeanInstantiationException(Class<?> beanClass, String msg)
beanClass
- the offending bean classmsg
- the detail messagepublic BeanInstantiationException(Class<?> beanClass, String msg, Throwable cause)
beanClass
- the offending bean classmsg
- the detail messagecause
- the root causepublic BeanInstantiationException(Constructor<?> constructor, String msg, Throwable cause)
constructor
- the offending constructormsg
- the detail messagecause
- the root causepublic BeanInstantiationException(Method constructingMethod, String msg, 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
).public Constructor<?> getConstructor()
null
in case of a
factory method or in case of default instantiationpublic Method getConstructingMethod()
null
in case of constructor-based instantiation