# PodIsNotAProviderException constructor

PodIsNotAProviderException(

1. String name,
2. Class actualType

)

Exception thrown when a pod is expected to be a PodProvider but is not.

This occurs when the application context expects to work with a factory pod (a pod that produces other pods) but the registered pod doesn't implement the PodProvider interface. This is a specialized case of PodNotOfRequiredTypeException.

### Example:

    // Expected: A factory pod
    @Pod('serviceFactory')
    UserServiceFactory createFactory() => UserServiceFactory();

    // Actual: Regular pod (not a factory)
    @Pod('serviceFactory')
    UserService createService() => UserService(); // Wrong!

    // This will throw PodIsNotAFactoryException
    try {
      final factory = podFactory.getPod<PodProvider>('serviceFactory');
    } catch (e) {
      if (e is PodIsNotAFactoryException) {
        print('Pod is not a factory: ${e.name}');
      }
    }

## Implementation

    PodIsNotAProviderException(String name, Class actualType) : super(
      name: name,
      requiredType: Class<PodProvider>(null, PackageNames.CORE),
      actualType: actualType
    );