From a9b2910657f2329129b7e008b0c02956717c04df Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 1 Oct 2018 12:01:20 +0200 Subject: [PATCH] IcingaObject: fix use of unused exception --- library/Director/Objects/IcingaObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index dfa472ac..74432aa2 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -858,7 +858,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer { $this->assertGroupsSupport(); if (! $this instanceof IcingaHost) { - throw new ProgrammingError('getAppliedGroups is only available for hosts currently!'); + throw new RuntimeException('getAppliedGroups is only available for hosts currently!'); } $type = strtolower($this->getType());