1: <?php
 2: /**
 3:  * CDbException class file.
 4:  *
 5:  * @author Qiang Xue <qiang.xue@gmail.com>
 6:  * @link http://www.yiiframework.com/
 7:  * @copyright 2008-2013 Yii Software LLC
 8:  * @license http://www.yiiframework.com/license/
 9:  */
10: 
11: /**
12:  * CDbException represents an exception that is caused by some DB-related operations.
13:  *
14:  * @author Qiang Xue <qiang.xue@gmail.com>
15:  * @package system.db
16:  * @since 1.0
17:  */
18: class CDbException extends CException
19: {
20:     /**
21:      * @var mixed the error info provided by a PDO exception. This is the same as returned
22:      * by {@link http://www.php.net/manual/en/pdo.errorinfo.php PDO::errorInfo}.
23:      * @since 1.1.4
24:      */
25:     public $errorInfo;
26: 
27:     /**
28:      * Constructor.
29:      * @param string $message PDO error message
30:      * @param integer $code PDO error code
31:      * @param mixed $errorInfo PDO error info
32:      */
33:     public function __construct($message,$code=0,$errorInfo=null)
34:     {
35:         $this->errorInfo=$errorInfo;
36:         parent::__construct($message,$code);
37:     }
38: }