You are here

public function AggregateException::append in Zircon Profile 8

Same name and namespace in other branches
  1. 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

AggregateException

Namespace

Prophecy\Exception\Prediction

Code

public function append(PredictionException $exception) {
  $message = $exception
    ->getMessage();
  $message = '  ' . strtr($message, array(
    "\n" => "\n  ",
  )) . "\n";
  $this->message = rtrim($this->message . $message);
  $this->exceptions[] = $exception;
}