酒店预订平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

AggregateException.php 380 B

3年前
1234567891011121314151617
  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. }