Lines Matching refs:reason
7 private $reason;
9 public static function resolve($reason)
11 if ($reason instanceof \Exception || $reason instanceof \Throwable) {
12 return $reason;
15 return new static($reason);
18 public function __construct($reason)
20 $this->reason = $reason;
22 $message = \sprintf('Unhandled Rejection: %s', \json_encode($reason));
29 return $this->reason;