BeanIsNotAFactoryException(name: String, actualType: Class<*>)
Create a new BeanIsNotAFactoryException.
name - the name of the bean requested
name
actualType - the actual type returned, which did not match the expected type
actualType