# PodIsAbstractException constructor

PodIsAbstractException(

1. String message, {
2. required String name,

})

Exception thrown when attempting to instantiate a pod that is marked as abstract.

Abstract pods serve as templates or parent definitions for other pods and cannot be instantiated directly. This exception occurs when the application context tries to create an instance of such a pod.

### Example:

    // Pod definition marked as abstract
    @Pod(abstract: true)
    abstract class BaseService {
      // Common configuration
    }

    // This will throw PodIsAbstractException
    try {
      final pod = podFactory.getPod<BaseService>();
    } catch (e) {
      if (e is PodIsAbstractException) {
        print('Cannot instantiate abstract pod: ${e.name}');
      }
    }

## Implementation

    PodIsAbstractException(super.message, {required this.name});