_chainedException = $e; $this->code = $e->getCode(); } parent::__construct($message); } public function getChainedException() { return $this->_chainedException; } }