# ScopeNotActiveException constructor

ScopeNotActiveException(

1. String name,
2. String scopeName,
3. IllegalStateException cause

)

Exception thrown when a pod is requested from a scope that is not active.

This exception is thrown when a pod is requested from a scope that is not active.

Example usage:

    try {
      final pod = podFactory.getPod<MyPod>();
    } catch (e) {
      if (e is ScopeNotActiveException) {
        print('Scope not active: ${e.message}');
      }
    }

## Implementation

    ScopeNotActiveException(this.name, this.scopeName, IllegalStateException cause) :
    		super.withPodName(
        name,
        "Scope '$scopeName' for pod '$name' is not active on the current thread. "
    				"Activate the scope, use a scoped proxy, or avoid referencing this scoped pod from a singleton.",
        cause: cause,
      );