*
* @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);
}
* @param string $text TODO
*
* @return array TODO
- * @throws Exception
+ * @throws Horde_Exception
*/
abstract public function spellCheck($text);
* @param string $text TODO
*
* @return array TODO
- * @throws Exception
+ * @throws Horde_Exception
*/
public function spellCheck($text)
{
$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';
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) {