From c0de2e6ee3d386c81ae073b7efe01c6fa926c58e Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 22 Jul 2015 08:39:24 +0200 Subject: [PATCH] Form: Add missing use statement for the ProgrammingError exception --- library/Icinga/Web/Form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index f41672b28..39cc5ecbb 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -3,13 +3,13 @@ namespace Icinga\Web; -use LogicException; use Zend_Config; use Zend_Form; use Zend_Form_Element; use Zend_View_Interface; use Icinga\Application\Icinga; use Icinga\Authentication\Manager; +use Icinga\Exception\ProgrammingError; use Icinga\Security\SecurityException; use Icinga\Util\Translator; use Icinga\Web\Form\ErrorLabeller; @@ -222,12 +222,12 @@ class Form extends Zend_Form * * @return $this * - * @throws LogicException If the callback is not callable + * @throws ProgrammingError If the callback is not callable */ public function setOnSuccess($onSuccess) { if (! is_callable($onSuccess)) { - throw new LogicException('The option `onSuccess\' is not callable'); + throw new ProgrammingError('The option `onSuccess\' is not callable'); } $this->onSuccess = $onSuccess; return $this;