# notifyDependencyNotFound method

1. @protected

Object notifyDependencyNotFound(

1. String podName,
2. DependencyDescriptor descriptor

)

Notifies that a required dependency was not found.

This method creates and throws an appropriate exception when a required dependency cannot be resolved.

`podName` the name of the pod that required the dependency `descriptor` the dependency descriptor that couldn't be resolved

Throws:

- NoSuchPodDefinitionException with detailed error message

## Implementation

    @protected
    Object notifyDependencyNotFound(String podName, DependencyDescriptor descriptor) {
      final typeName = descriptor.type.getQualifiedName().substring(descriptor.type.getQualifiedName().lastIndexOf(".") + 1);

      throw NoSuchPodDefinitionException.byTypeWithMessage(
        descriptor.type,
        "No pod definition found for required type '$typeName' (qualified name: '${descriptor.type.getQualifiedName()}'). "
        "Ensure that a pod of this type is registered in the factory or provided by configuration."
      );
    }