Form: Add missing use statement for the ProgrammingError exception

This commit is contained in:
Johannes Meyer 2015-07-22 08:39:24 +02:00
parent b4214dcf32
commit c0de2e6ee3
1 changed files with 3 additions and 3 deletions

View File

@ -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;