diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-05-12 16:59:36 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-05-12 16:59:36 -0700 |
commit | dd24e2c973a7979894971bdc38d904d2aecc7d5d (patch) | |
tree | 2f8474d22cbf29749219bd6dd543bb22b959465e /htdocs/src/Cif_Database_Exception.inc.php | |
parent | e159ae5209a561043ceb89aa640b207df15181b7 (diff) |
Well, you can see posts on the moderation panel now
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 |