mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
CompatController: use default exception
This commit is contained in:
parent
77543371b7
commit
2b61a0e7c4
4
library/vendor/ipl/Web/CompatController.php
vendored
4
library/vendor/ipl/Web/CompatController.php
vendored
@ -9,7 +9,6 @@ use Icinga\Application\Modules\Manager;
|
|||||||
use Icinga\Application\Modules\Module;
|
use Icinga\Application\Modules\Module;
|
||||||
use Icinga\Authentication\Auth;
|
use Icinga\Authentication\Auth;
|
||||||
use Icinga\Exception\IcingaException;
|
use Icinga\Exception\IcingaException;
|
||||||
use Icinga\Exception\ProgrammingError;
|
|
||||||
use Icinga\File\Pdf;
|
use Icinga\File\Pdf;
|
||||||
use Icinga\Forms\AutoRefreshForm;
|
use Icinga\Forms\AutoRefreshForm;
|
||||||
use Icinga\Security\SecurityException;
|
use Icinga\Security\SecurityException;
|
||||||
@ -19,6 +18,7 @@ use Icinga\Web\Session;
|
|||||||
use Icinga\Web\UrlParams;
|
use Icinga\Web\UrlParams;
|
||||||
use Icinga\Web\Url as WebUrl;
|
use Icinga\Web\Url as WebUrl;
|
||||||
use Icinga\Web\Window;
|
use Icinga\Web\Window;
|
||||||
|
use InvalidArgumentException;
|
||||||
use dipl\Compat\Translator;
|
use dipl\Compat\Translator;
|
||||||
use dipl\Translation\TranslationHelper;
|
use dipl\Translation\TranslationHelper;
|
||||||
use dipl\Web\Widget\ControlsAndContent;
|
use dipl\Web\Widget\ControlsAndContent;
|
||||||
@ -347,7 +347,7 @@ class CompatController extends Zend_Controller_Action implements ControlsAndCont
|
|||||||
public function setAutorefreshInterval($interval)
|
public function setAutorefreshInterval($interval)
|
||||||
{
|
{
|
||||||
if (! is_int($interval) || $interval < 1) {
|
if (! is_int($interval) || $interval < 1) {
|
||||||
throw new ProgrammingError(
|
throw new InvalidArgumentException(
|
||||||
'Setting autorefresh interval smaller than 1 second is not allowed'
|
'Setting autorefresh interval smaller than 1 second is not allowed'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user