public class ScopeNotActiveException extends BeanCreationException
BeanCreationException
which indicates that the target scope
is not active, e.g. in case of request or session scope.BeanFactory.getBean(java.lang.String)
,
Scope
,
AbstractBeanDefinition.setScope(java.lang.String)
,
Serialized FormConstructor and Description |
---|
ScopeNotActiveException(String beanName,
String scopeName,
IllegalStateException cause)
Create a new ScopeNotActiveException.
|
addRelatedCause, contains, getBeanName, getRelatedCauses, getResourceDescription, printStackTrace, printStackTrace, toString
getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
public ScopeNotActiveException(String beanName, String scopeName, IllegalStateException cause)
beanName
- the name of the bean requestedscopeName
- the name of the target scopecause
- the root cause, typically from Scope.get(java.lang.String, org.springframework.beans.factory.ObjectFactory<?>)