* or connection parameters a subclass might need.
*
* @return Skeleton_Driver The newly created concrete instance.
- * @throws Horde_Exception
+ * @throws Skeleton_Exception
*/
static public function factory($driver = null, $params = null)
{
return new $class($params);
}
- throw new Horde_Exception('Could not find driver ' . $class);
+ throw new Skeleton_Exception('Could not find driver ' . $class);
}
/**
/**
* Retrieves the foos from the database.
*
- * @throws Horde_Skeleton_Exception
+ * @throws Skeleton_Exception
*/
public function retrieve()
{
try {
$rows = $this->_db->selectAll($query, $values);
} catch (Horde_Db_Exception $e) {
- throw new Horde_Skeleton_Exception($e);
+ throw new Skeleton_Exception($e);
}
/* Store the retrieved values in the foo variable. */
--- /dev/null
+<?php
+/**
+ * Base exception class for Skeleton.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Your name <you@example.com>
+ * @category Horde
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Skeleton
+ */
+class Skeleton_Exception extends Horde_Exception_Prior
+{
+}