/** * Shows an error message and outputs the SOAP result if passed * * @param string $result A SOAP result * @return void */ public function handleError($error = null) { if ($this->logErrors === true) { $this->log($error); if ($this->client) { $this->log($this->client->__getLastRequest()); } } throw new Exception($error); }