酒店预订平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 line
380 B

  1. <?php
  2. namespace GuzzleHttp\Promise;
  3. /**
  4. * Exception thrown when too many errors occur in the some() or any() methods.
  5. */
  6. class AggregateException extends RejectionException
  7. {
  8. public function __construct($msg, array $reasons)
  9. {
  10. parent::__construct(
  11. $reasons,
  12. sprintf('%s; %d rejected promises', $msg, count($reasons))
  13. );
  14. }
  15. }