import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -17,7 +17,7 @@
* @subpackage Statement
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Exception.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: Exception.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -36,4 +36,38 @@ require_once 'Zend/Db/Exception.php';
*/
class Zend_Db_Statement_Exception extends Zend_Db_Exception
{
/**
* @var Exception
*/
protected $_chainedException = null;
/**
* @param string $message
* @param string|int $code
* @param Exception $chainedException
*/
public function __construct($message = null, $code = null, Exception $chainedException=null)
{
$this->message = $message;
$this->code = $code;
$this->_chainedException = $chainedException;
}
/**
* Check if this general exception has a specific database driver specific exception nested inside.
*
* @return bool
*/
public function hasChainedException()
{
return ($this->_chainedException!==null);
}
/**
* @return Exception|null
*/
public function getChainedException()
{
return $this->_chainedException;
}
}