PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 3.3.2
Smart Grid-Layout Design for Contact Form 7 v3.3.2
4.18.0 4.17.0 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 4.0.0 4.0.1 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10 4.11 4.12 4.13 4.14 All 119 releases
cf7-grid-layout / assets / simple-html-dom / amphp / amp / lib / MultiReasonException.php

MultiReasonException.php in Smart Grid-Layout Design for Contact Form 7 3.3.2, at assets/simple-html-dom/amphp/amp/lib/MultiReasonException.php

30 lines 670 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Amp;
4
5 class MultiReasonException extends \Exception
6 {
7 /** @var \Throwable[] */
8 private $reasons;
9
10 /**
11 * @param \Throwable[] $reasons Array of exceptions rejecting the promise.
12 * @param string|null $message
13 */
14 public function __construct(array $reasons, string $message = null)
15 {
16 parent::__construct($message ?: "Multiple errors encountered; use "
17 . self::class . "::getReasons() to retrieve the array of exceptions thrown");
18
19 $this->reasons = $reasons;
20 }
21
22 /**
23 * @return \Throwable[]
24 */
25 public function getReasons(): array
26 {
27 return $this->reasons;
28 }
29 }
30