\DI\object(NonExistingClass::class)->constructorParameter('foo', 'bar)
gives the exception message "Parameter with name 'foo' could not be found".
The real cause of the exception ("Class NonExistingClass does not exist") is dropped in ObjectDefinitionHelper::fixParamter() when catching the ReflectionException.