00001 <?php 00026 require_once 'Zend/Db/Exception.php'; 00027 00037 class Zend_Db_Statement_Exception extends Zend_Db_Exception 00038 { 00042 protected $_chainedException = null; 00043 00049 public function __construct($message = null, $code = null, Exception $chainedException=null) 00050 { 00051 $this->message = $message; 00052 $this->code = $code; 00053 $this->_chainedException = $chainedException; 00054 } 00055 00061 public function hasChainedException() 00062 { 00063 return ($this->_chainedException!==null); 00064 } 00065 00069 public function getChainedException() 00070 { 00071 return $this->_chainedException; 00072 } 00073 }