diff options
Diffstat (limited to 'htdocs/src/Cif_Database_Exception.inc.php')
-rw-r--r-- | htdocs/src/Cif_Database_Exception.inc.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/htdocs/src/Cif_Database_Exception.inc.php b/htdocs/src/Cif_Database_Exception.inc.php new file mode 100644 index 0000000..cf70661 --- /dev/null +++ b/htdocs/src/Cif_Database_Exception.inc.php @@ -0,0 +1,31 @@ +<?php +/** + * @category Cif + * @package Cif_Database + * + * @author Jesse Morgan <jesse@jesterpm.net> + * @copyright Copyright (c) 2009, Jesse Morgan + * @version $Id: Cif_Database_Exception.inc.php 134 2011-03-08 23:35:57Z jessemorgan $ + */ + +/** + * Cif_Database_Exception is a MySQL specific exception. + * + * @package Cif_Database + */ +class Cif_Database_Exception extends Exception { + /** + * Constructor for the Cif_Database_Exception. + * Creates a new Exception with the mysql error messages as the message. + * + * @param string $message Message to prepend to the Exception message. + */ + public function __construct($message) { + parent::__construct($message . " Error: ". mysql_error(), mysql_errno()); + } + + + +} + +?>
\ No newline at end of file |