equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Db |
16 * @package Zend_Db |
17 * @subpackage Adapter |
17 * @subpackage Adapter |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * Zend_Db_Exception |
24 * Zend_Db_Exception |
25 */ |
25 */ |
27 |
27 |
28 /** |
28 /** |
29 * @category Zend |
29 * @category Zend |
30 * @package Zend_Db |
30 * @package Zend_Db |
31 * @subpackage Adapter |
31 * @subpackage Adapter |
32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
32 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 */ |
34 */ |
35 class Zend_Db_Adapter_Exception extends Zend_Db_Exception |
35 class Zend_Db_Adapter_Exception extends Zend_Db_Exception |
36 { |
36 { |
37 protected $_chainedException = null; |
37 protected $_chainedException = null; |
44 parent::__construct($message, $code, $e); |
44 parent::__construct($message, $code, $e); |
45 } |
45 } |
46 |
46 |
47 public function hasChainedException() |
47 public function hasChainedException() |
48 { |
48 { |
49 return ($this->_previous !== null); |
49 return ($this->getPrevious() !== null); |
50 } |
50 } |
51 |
51 |
52 public function getChainedException() |
52 public function getChainedException() |
53 { |
53 { |
54 return $this->getPrevious(); |
54 return $this->getPrevious(); |