You are here

class AggregateException in Zircon Profile 8

Same name in this branch
  1. 8 vendor/guzzlehttp/promises/src/AggregateException.php \GuzzleHttp\Promise\AggregateException
  2. 8 vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php \Prophecy\Exception\Prediction\AggregateException
Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php \Prophecy\Exception\Prediction\AggregateException

Hierarchy

Expanded class hierarchy of AggregateException

2 files declare their use of AggregateException
ObjectProphecy.php in vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php
Prophet.php in vendor/phpspec/prophecy/src/Prophecy/Prophet.php

File

vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php, line 16

Namespace

Prophecy\Exception\Prediction
View source
class AggregateException extends \RuntimeException implements PredictionException {
  private $exceptions = array();
  private $objectProphecy;
  public function append(PredictionException $exception) {
    $message = $exception
      ->getMessage();
    $message = '  ' . strtr($message, array(
      "\n" => "\n  ",
    )) . "\n";
    $this->message = rtrim($this->message . $message);
    $this->exceptions[] = $exception;
  }

  /**
   * @return PredictionException[]
   */
  public function getExceptions() {
    return $this->exceptions;
  }
  public function setObjectProphecy(ObjectProphecy $objectProphecy) {
    $this->objectProphecy = $objectProphecy;
  }

  /**
   * @return ObjectProphecy
   */
  public function getObjectProphecy() {
    return $this->objectProphecy;
  }

}

Members