public function AggregateException::append in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php \Prophecy\Exception\Prediction\AggregateException::append()
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Exception/ Prediction/ AggregateException.php, line 21
Class
Namespace
Prophecy\Exception\PredictionCode
public function append(PredictionException $exception) {
$message = $exception
->getMessage();
$message = ' ' . strtr($message, array(
"\n" => "\n ",
)) . "\n";
$this->message = rtrim($this->message . $message);
$this->exceptions[] = $exception;
}