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 Form| Constructor and Description |
|---|
ScopeNotActiveException(String beanName,
String scopeName,
IllegalStateException cause)
Create a new ScopeNotActiveException.
|
addRelatedCause, contains, getBeanName, getRelatedCauses, getResourceDescription, printStackTrace, printStackTrace, toStringgetMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTracepublic 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<?>)