# UnsatisfiedDependencyException.withResource constructor

UnsatisfiedDependencyException.withResource(

1. String? resourceDescription,
2. String name,
3. String? msg, {
4. Throwable? cause,

})

Exception thrown when a dependency is not satisfied for a pod.

This exception is thrown when a dependency is not satisfied for a pod.

Example usage:

    try {
      final pod = podFactory.getPod<MyPod>();
    } catch (e) {
      if (e is UnsatisfiedDependencyException) {
        print('Unsatisfied dependency: ${e.message}');
      }
    }

## Implementation

    UnsatisfiedDependencyException.withResource(
      String? resourceDescription,
      String name,
      String? msg, {
      Throwable? cause,
    })  : super.withPodName(
      name,
      "Unsatisfied dependency while creating pod '$name'"
      "${resourceDescription != null ? " (defined in $resourceDescription)" : ""}: ${msg ?? 'unspecified'}. "
      "Verify that required pods are registered, not ambiguous, and available at creation time.",
      cause: cause,
    );