class AggregateException
Same name in this branch
- 11.1.x vendor/guzzlehttp/promises/src/AggregateException.php \GuzzleHttp\Promise\AggregateException
Hierarchy
- class \Prophecy\Exception\Prediction\AggregateException extends \Prophecy\Exception\Prediction\RuntimeException implements \Prophecy\Exception\Prediction\PredictionException
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\PredictionView source
class AggregateException extends \RuntimeException implements PredictionException {
/**
* @var list<PredictionException>
*/
private $exceptions = array();
/**
* @var ObjectProphecy<object>|null
*/
private $objectProphecy;
/**
* @return void
*/
public function append(PredictionException $exception) {
$message = $exception->getMessage();
$message = strtr($message, array(
"\n" => "\n ",
)) . "\n";
$message = empty($this->exceptions) ? $message : "\n" . $message;
$this->message = rtrim($this->message . $message);
$this->exceptions[] = $exception;
}
/**
* @return list<PredictionException>
*/
public function getExceptions() {
return $this->exceptions;
}
/**
* @param ObjectProphecy<object> $objectProphecy
*
* @return void
*/
public function setObjectProphecy(ObjectProphecy $objectProphecy) {
$this->objectProphecy = $objectProphecy;
}
/**
* @return ObjectProphecy<object>|null
*/
public function getObjectProphecy() {
return $this->objectProphecy;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
AggregateException::$exceptions | private | property | |
AggregateException::$objectProphecy | private | property | |
AggregateException::append | public | function | |
AggregateException::getExceptions | public | function | |
AggregateException::getObjectProphecy | public | function | |
AggregateException::setObjectProphecy | public | function |