aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/php/vendor/react/promise/src/UnhandledRejectionException.php
diff options
context:
space:
mode:
Diffstat (limited to 'assets/php/vendor/react/promise/src/UnhandledRejectionException.php')
-rwxr-xr-xassets/php/vendor/react/promise/src/UnhandledRejectionException.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/assets/php/vendor/react/promise/src/UnhandledRejectionException.php b/assets/php/vendor/react/promise/src/UnhandledRejectionException.php
deleted file mode 100755
index a44b7a1..0000000
--- a/assets/php/vendor/react/promise/src/UnhandledRejectionException.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?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;
- }
-}