/** * @return string readable representation of exception */ public function __toString() { $string = parent::__toString() . PHP_EOL . 'Request Information:' . PHP_EOL . print_r($this->requestInfo, true); if (!empty($this->errorInfo)) { $string .= PHP_EOL . 'Error Information:' . PHP_EOL . print_r($this->errorInfo, true); } return $string; }
/** * @return string readable representation of exception */ public function __toString() { return parent::__toString() . PHP_EOL . 'Additional Information:' . PHP_EOL . print_r($this->errorInfo, true); }