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; } }