* parameters a subclass might need.
*
* @return Horde_Text_Filter_Base The newly created concrete instance.
- * @throws Horde_Exception
+ * @throws Horde_Text_Filter_Exception
*/
static public function factory($driver, $params = array())
{
return new $class($params);
}
- throw new Horde_Exception(__CLASS__ . ': Class definition of ' . $driver . ' not found.');
+ throw new Horde_Text_Filter_Exception(__CLASS__ . ': Class definition of ' . $driver . ' not found.');
}
/**
foreach ($filters as $num => $filter) {
try {
$filterOb = self::factory($filter, isset($params[$num]) ? $params[$num] : array());
- } catch (Horde_Exception $e) {
+ } catch (Horde_Text_Filter_Exception $e) {
return $e->getMessage();
}
$patterns = $filterOb->getPatterns();
--- /dev/null
+<?php
+/**
+ * Exception handler for the Horde_Text_Filter package.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @author Michael Slusarz <slusarz@horde.org>
+ * @category Horde
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @package Text_Filter
+ */
+class Horde_Text_Filter_Exception extends Horde_Exception_Prior
+{
+}
<api>beta</api>
</stability>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
- <notes>* Remove Horde/Core dependency in the Emoticons driver.
+ <notes>* Add Horde_Text_Filter_Exception::.
+ * Remove Horde/Core dependency in the Emoticons driver.
* Html2text converter now uses XML parser to generate output.
* Add ability to define filters to use with preg_replace_callback().
* Add 'noprefetch' parameter to XSS filter (Ticket #8836).
<file name="Emails.php" role="php" />
<file name="Emoticons.php" role="php" />
<file name="Environment.php" role="php" />
+ <file name="Exception.php" role="php" />
<file name="Highlightquotes.php" role="php" />
<file name="Html2text.php" role="php" />
<file name="JavascriptMinify.php" role="php" />
<channel>pear.horde.org</channel>
</package>
<package>
+ <name>Exception</name>
+ <channel>pear.horde.org</channel>
+ </package>
+ <package>
<name>Util</name>
<channel>pear.horde.org</channel>
</package>