• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/di/servicelocator.php
  • Класс: BitrixMainDIServiceLocator
  • Вызов: ServiceLocator::buildBadRegistrationExceptions
private function buildBadRegistrationExceptions(string $id): SystemException|ContainerExceptionInterface
{
	$message =
		"Could not register service {{$id}}." .
		"There is no {className} to find class or {constructor} to build instance."
	;

	return new class($message) extends SystemException implements ContainerExceptionInterface {};
}