fix unhandled exception

This commit is contained in:
sunxyw
2022-04-12 17:13:17 +08:00
parent 7253a309c7
commit 33f517333f

View File

@@ -334,7 +334,7 @@ class WorkerContainer implements ContainerInterface
try { try {
$reflection = new ReflectionClass($concrete); $reflection = new ReflectionClass($concrete);
} catch (ReflectionException $e) { } catch (ReflectionException $e) {
throw new EntryResolutionException("指定的类 {$concrete} 不存在"); throw new EntryResolutionException("指定的类 {$concrete} 不存在", 0, $e);
} }
if (!$reflection->isInstantiable()) { if (!$reflection->isInstantiable()) {