From: Michael M Slusarz Date: Mon, 22 Jun 2009 04:08:46 +0000 (-0600) Subject: Use Horde_Exception here, not Exception X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=01402bc34c2e9e45e0bf6b556edab73a113cf7db;p=horde.git Use Horde_Exception here, not Exception --- diff --git a/framework/SpellChecker/lib/Horde/SpellChecker.php b/framework/SpellChecker/lib/Horde/SpellChecker.php index 4e8b903ca..e2423df90 100644 --- a/framework/SpellChecker/lib/Horde/SpellChecker.php +++ b/framework/SpellChecker/lib/Horde/SpellChecker.php @@ -63,13 +63,13 @@ abstract class Horde_SpellChecker * * @return Horde_SpellChecker The newly created Horde_SpellChecker * instance. - * @throws Exception + * @throws Horde_Exception */ static public function getInstance($driver, $params = array()) { $class = 'Horde_SpellChecker_' . Horde_String::ucfirst(basename($driver)); if (!class_exists($class)) { - throw new Exception('Driver ' . $driver . ' not found'); + throw new Horde_Exception('Driver ' . $driver . ' not found'); } return new $class($params); } @@ -101,7 +101,7 @@ abstract class Horde_SpellChecker * @param string $text TODO * * @return array TODO - * @throws Exception + * @throws Horde_Exception */ abstract public function spellCheck($text); diff --git a/framework/SpellChecker/lib/Horde/SpellChecker/Aspell.php b/framework/SpellChecker/lib/Horde/SpellChecker/Aspell.php index 459745213..ee5062ba8 100644 --- a/framework/SpellChecker/lib/Horde/SpellChecker/Aspell.php +++ b/framework/SpellChecker/lib/Horde/SpellChecker/Aspell.php @@ -20,7 +20,7 @@ class Horde_SpellChecker_Aspell extends Horde_SpellChecker * @param string $text TODO * * @return array TODO - * @throws Exception + * @throws Horde_Exception */ public function spellCheck($text) { @@ -43,7 +43,7 @@ class Horde_SpellChecker_Aspell extends Horde_SpellChecker $process = proc_open($this->_cmd(), $descspec, $pipes); if (!is_resource($process)) { - throw Exception('Spellcheck failed. Command line: ', $this->_cmd()); + throw new Horde_Exception('Spellcheck failed. Command line: ', $this->_cmd()); } require_once 'Horde/NLS.php'; @@ -80,7 +80,7 @@ class Horde_SpellChecker_Aspell extends Horde_SpellChecker if ($this->_encoding) { $err = Horde_String::convertCharset($err, $this->_encoding, $charset); } - throw Exception('Spellcheck failed. Command line: ', $this->_cmd()); + throw new Horde_Exception('Spellcheck failed. Command line: ', $this->_cmd()); } if ($this->_encoding) {