fix unhandled exception

This commit is contained in:
sunxyw 2022-04-12 17:13:17 +08:00
parent 7253a309c7
commit 33f517333f
No known key found for this signature in database
GPG Key ID: CEA01A083E98C578

View File

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