Ejemplo n.º 1
0
 /**
  * @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;
 }
Ejemplo n.º 2
0
 /**
  * @return string readable representation of exception
  */
 public function __toString()
 {
     return parent::__toString() . PHP_EOL . 'Additional Information:' . PHP_EOL . print_r($this->errorInfo, true);
 }