blob: cf70661a64681185cb2ec5abd97bd79204f500fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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());
}
}
?>
|