# NoUniquePodDefinitionException.byTypeWithNames constructor

NoUniquePodDefinitionException.byTypeWithNames(

1. Class type,
2. List<String> podNamesFound

)

Create a new NoUniquePodDefinitionException with a type and pod names.

## Implementation

    NoUniquePodDefinitionException.byTypeWithNames(
        Class type, List<String> podNamesFound)
        : numberOfPodsFound = podNamesFound.length,
          podNamesFound = List.unmodifiable(podNamesFound),
          super.byTypeWithMessage(
            type,
            "Expected a single candidate for type '${type.getOriginal()}', but found ${podNamesFound.length} matches: ${podNamesFound.join(', ')}. "
            "Disambiguate by requesting by name/qualifier or mark one definition as primary.",
          );