Class BeanNotOfRequiredTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aspectran.core.context.AspectranRuntimeException
-
- com.aspectran.core.component.bean.BeanException
-
- com.aspectran.core.component.bean.BeanRuleException
-
- com.aspectran.core.component.bean.BeanNotOfRequiredTypeException
-
- All Implemented Interfaces:
java.io.Serializable
public class BeanNotOfRequiredTypeException extends BeanRuleException
Thrown when a bean doesn't match the expected type- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BeanNotOfRequiredTypeException(java.lang.Class<?> requiredType, BeanRule beanRule)
Create a new BeanNotOfRequiredTypeException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getRequiredType()
Gets the required type.-
Methods inherited from class com.aspectran.core.component.bean.BeanRuleException
getBeanRule
-
-
-
-
Constructor Detail
-
BeanNotOfRequiredTypeException
public BeanNotOfRequiredTypeException(java.lang.Class<?> requiredType, BeanRule beanRule)
Create a new BeanNotOfRequiredTypeException.- Parameters:
requiredType
- the required typebeanRule
- the bean rule
-
-