PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
vendor
/
react
/
promise
/
src
<?php namespace React\Promise; class UnhandledRejectionException extends \RuntimeException { private $reason; public static function resolve($reason) { if ($reason instanceof \Exception || $reason instanceof \Throwable) { return $reason; } return new static($reason); } public function __construct($reason) { $this->reason = $reason; $message = \sprintf('Unhandled Rejection: %s', \json_encode($reason)); parent::__construct($message, 0); } public function getReason() { return $this->reason; } }
[-] FulfilledPromise.php
[edit]
[-] ExtendedPromiseInterface.php
[edit]
[-] UnhandledRejectionException.php
[edit]
[+]
..
[+]
Exception
[-] PromiseInterface.php
[edit]
[-] LazyPromise.php
[edit]
[-] CancellationQueue.php
[edit]
[-] functions_include.php
[edit]
[-] Promise.php
[edit]
[-] RejectedPromise.php
[edit]
[-] CancellablePromiseInterface.php
[edit]
[-] functions.php
[edit]
[-] PromisorInterface.php
[edit]
[-] Deferred.php
[edit]