/** * Overload of parent __toString magic method * * @return (string) Exception string representation containing local and remote exceptions definitions */ public function __toString() { return "Remote exception with code '{$this->_remoteCode}' and message '{$this->_remoteMessage}'\n\n" . parent::__toString(); }