| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,19 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+declare(strict_types=1); |
|
| 4 |
+ |
|
| 5 |
+namespace GuzzleHttp\Promise; |
|
| 6 |
+ |
|
| 7 |
+/** |
|
| 8 |
+ * Exception thrown when too many errors occur in the some() or any() methods. |
|
| 9 |
+ */ |
|
| 10 |
+class AggregateException extends RejectionException |
|
| 11 |
+{
|
|
| 12 |
+ public function __construct(string $msg, array $reasons) |
|
| 13 |
+ {
|
|
| 14 |
+ parent::__construct( |
|
| 15 |
+ $reasons, |
|
| 16 |
+ sprintf('%s; %d rejected promises', $msg, count($reasons))
|
|
| 17 |
+ ); |
|
| 18 |
+ } |
|
| 19 |
+} |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,17 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
- |
|
| 3 |
-namespace GuzzleHttp\Promise; |
|
| 4 |
- |
|
| 5 |
-/** |
|
| 6 |
- * Exception thrown when too many errors occur in the some() or any() methods. |
|
| 7 |
- */ |
|
| 8 |
-class AggregateException extends RejectionException |
|
| 9 |
-{
|
|
| 10 |
- public function __construct($msg, array $reasons) |
|
| 11 |
- {
|
|
| 12 |
- parent::__construct( |
|
| 13 |
- $reasons, |
|
| 14 |
- sprintf('%s; %d rejected promises', $msg, count($reasons))
|
|
| 15 |
- ); |
|
| 16 |
- } |
|
| 17 |
-} |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,17 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+namespace GuzzleHttp\Promise; |
|
| 4 |
+ |
|
| 5 |
+/** |
|
| 6 |
+ * Exception thrown when too many errors occur in the some() or any() methods. |
|
| 7 |
+ */ |
|
| 8 |
+class AggregateException extends RejectionException |
|
| 9 |
+{
|
|
| 10 |
+ public function __construct($msg, array $reasons) |
|
| 11 |
+ {
|
|
| 12 |
+ parent::__construct( |
|
| 13 |
+ $reasons, |
|
| 14 |
+ sprintf('%s; %d rejected promises', $msg, count($reasons))
|
|
| 15 |
+ ); |
|
| 16 |
+ } |
|
| 17 |
+} |