DependencyNotFoundException constructor

DependencyNotFoundException({
  1. required Object type,
  2. required Entity<Object>? groupEntity,
})

Implementation

DependencyNotFoundException({
  required Object type,
  required Entity? groupEntity,
}) : super(
        condition:
            'No dependency of type "$type" found in group "$groupEntity".',
        reason:
            'Thrown when attempting to unregister or access a dependency that does not exist.',
        options: [
          'Verify the type and groupEntity.',
          'Ensure that the dependency has been registered before accessing or unregistering it.',
          "If accessing from a parent container, check the parent container's dependencies.",
        ],
      );