|
4 | 4 |
|
5 | 5 | namespace Icinga\Module\Icingadb\Widget\Detail; |
6 | 6 |
|
7 | | -use Exception; |
8 | 7 | use Icinga\Application\ClassLoader; |
9 | 8 | use Icinga\Application\Config; |
10 | 9 | use Icinga\Application\Hook; |
|
53 | 52 | use ipl\Stdlib\Filter; |
54 | 53 | use ipl\Web\Widget\Icon; |
55 | 54 | use ipl\Web\Widget\StateBall; |
| 55 | +use Throwable; |
56 | 56 |
|
57 | 57 | class ObjectDetail extends BaseHtmlElement |
58 | 58 | { |
@@ -172,7 +172,7 @@ protected function createActions() |
172 | 172 | if (! isset($nativeExtensionProviders[$moduleName])) { |
173 | 173 | try { |
174 | 174 | $navigation->merge($hook->getNavigation($this->compatObject())); |
175 | | - } catch (Exception $e) { |
| 175 | + } catch (Throwable $e) { |
176 | 176 | Logger::error("Failed to load legacy action hook: %s\n%s", $e, $e->getTraceAsString()); |
177 | 177 | $navigation->addItem($moduleName, ['label' => IcingaException::describe($e), 'url' => '#']); |
178 | 178 | } |
@@ -475,7 +475,7 @@ protected function createExtensions(): array |
475 | 475 |
|
476 | 476 | try { |
477 | 477 | $graph = HtmlString::create($grapher->getPreviewHtml($this->compatObject())); |
478 | | - } catch (Exception $e) { |
| 478 | + } catch (Throwable $e) { |
479 | 479 | Logger::error("Failed to load legacy grapher: %s\n%s", $e, $e->getTraceAsString()); |
480 | 480 | $graph = Text::create(IcingaException::describe($e)); |
481 | 481 | } |
@@ -511,7 +511,7 @@ protected function createExtensions(): array |
511 | 511 | ]), |
512 | 512 | HtmlString::create($renderedExtension) |
513 | 513 | ); |
514 | | - } catch (Exception $e) { |
| 514 | + } catch (Throwable $e) { |
515 | 515 | Logger::error("Failed to load legacy detail extension: %s\n%s", $e, $e->getTraceAsString()); |
516 | 516 | $extensionHtml = Text::create(IcingaException::describe($e)); |
517 | 517 | } |
|
0 commit comments