PodCurrentlyInCreationException constructor

PodCurrentlyInCreationException({
  1. String? msg,
  2. required String name,
  3. Throwable? cause,
})

Exception thrown when a pod is currently in the process of being created.

This exception typically occurs when a pod is being created and another pod depends on it, but the pod is still in the process of being created.

Example:

throw PodCurrentlyInCreationException('Pod is currently in creation');

Implementation

PodCurrentlyInCreationException({String? msg, required this.name, Throwable? cause}) : super(msg ?? '''
Requested pod '$name' is currently being created. This commonly indicates:
* an unresolvable circular dependency, or
* that the pod factory has not exposed an early reference (early singleton) yet, or
* an asynchronous initialization step blocking other creations.

Suggested actions: introduce lazy injection, use a provider/factory or proxy, or refactor to break the cycle.
''', cause: cause);