public function __construct(NodeInterface $parentNode, $childNodeName) { parent::__construct(sprintf('Undefined child node "%s" (the part of the path that was successful: "%s")', $childNodeName, $parentNode->getPath())); }