|
12 | 12 | namespace Symfony\Component\Config\Loader; |
13 | 13 |
|
14 | 14 | use Symfony\Component\Config\Exception\FileLoaderImportCircularReferenceException; |
15 | | -use Symfony\Component\Config\Exception\FileLoaderLoadException; |
16 | 15 | use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException; |
| 16 | +use Symfony\Component\Config\Exception\LoaderLoadException; |
17 | 17 | use Symfony\Component\Config\FileLocatorInterface; |
18 | 18 | use Symfony\Component\Config\Resource\FileExistenceResource; |
19 | 19 | use Symfony\Component\Config\Resource\GlobResource; |
@@ -66,7 +66,7 @@ public function getLocator() |
66 | 66 | * |
67 | 67 | * @return mixed |
68 | 68 | * |
69 | | - * @throws FileLoaderLoadException |
| 69 | + * @throws LoaderLoadException |
70 | 70 | * @throws FileLoaderImportCircularReferenceException |
71 | 71 | * @throws FileLocatorFileNotFoundException |
72 | 72 | */ |
@@ -161,11 +161,11 @@ private function doImport($resource, $type = null, bool $ignoreErrors = false, $ |
161 | 161 | } catch (\Exception $e) { |
162 | 162 | if (!$ignoreErrors) { |
163 | 163 | // prevent embedded imports from nesting multiple exceptions |
164 | | - if ($e instanceof FileLoaderLoadException) { |
| 164 | + if ($e instanceof LoaderLoadException) { |
165 | 165 | throw $e; |
166 | 166 | } |
167 | 167 |
|
168 | | - throw new FileLoaderLoadException($resource, $sourceResource, null, $e, $type); |
| 168 | + throw new LoaderLoadException($resource, $sourceResource, null, $e, $type); |
169 | 169 | } |
170 | 170 | } |
171 | 171 | } |
|
0 commit comments