From: Michael M Slusarz Date: Wed, 19 May 2010 18:05:08 +0000 (-0600) Subject: Add Exception class to Skeleton X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ae98813f880422e77ecc1ec76a294376ad210df4;p=horde.git Add Exception class to Skeleton --- diff --git a/skeleton/lib/Driver.php b/skeleton/lib/Driver.php index 295d5972d..cb42cda8e 100644 --- a/skeleton/lib/Driver.php +++ b/skeleton/lib/Driver.php @@ -32,7 +32,7 @@ class Skeleton_Driver * 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) { @@ -50,7 +50,7 @@ class Skeleton_Driver return new $class($params); } - throw new Horde_Exception('Could not find driver ' . $class); + throw new Skeleton_Exception('Could not find driver ' . $class); } /** diff --git a/skeleton/lib/Driver/Sql.php b/skeleton/lib/Driver/Sql.php index 5374ffb88..9f6a5d2c2 100644 --- a/skeleton/lib/Driver/Sql.php +++ b/skeleton/lib/Driver/Sql.php @@ -65,7 +65,7 @@ class Skeleton_Driver_Sql extends Skeleton_Driver /** * Retrieves the foos from the database. * - * @throws Horde_Skeleton_Exception + * @throws Skeleton_Exception */ public function retrieve() { @@ -77,7 +77,7 @@ class Skeleton_Driver_Sql extends Skeleton_Driver 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. */ diff --git a/skeleton/lib/Exception.php b/skeleton/lib/Exception.php new file mode 100644 index 000000000..a557fdf17 --- /dev/null +++ b/skeleton/lib/Exception.php @@ -0,0 +1,17 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Skeleton + */ +class Skeleton_Exception extends Horde_Exception_Prior +{ +}