diff --git a/src/ServiceManager.php b/src/ServiceManager.php
index <HASH>..<HASH> 100644
--- a/src/ServiceManager.php
+++ b/src/ServiceManager.php
@@ -678,10 +678,7 @@ class ServiceManager implements ServiceLocatorInterface
             }
         }
 
-        throw new ServiceNotFoundException(sprintf(
-            'Unable to resolve service "%s" to a factory; are you certain you provided it during configuration?',
-            $name
-        ));
+        throw ServiceNotFoundException::fromUnknownService($name);
     }
 
     /**
Changed exception creation to named constructor.