From dd24e2c973a7979894971bdc38d904d2aecc7d5d Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Thu, 12 May 2011 16:59:36 -0700 Subject: Well, you can see posts on the moderation panel now --- htdocs/src/Cif_Database_Exception.inc.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 htdocs/src/Cif_Database_Exception.inc.php (limited to 'htdocs/src/Cif_Database_Exception.inc.php') 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 @@ + + * @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 -- cgit v1.2.3