%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/vacivi36/code/vendor/rector/rector/vendor/react/promise/src/
Upload File :
Create Path :
Current File : //home2/vacivi36/code/vendor/rector/rector/vendor/react/promise/src/UnhandledRejectionException.php

<?php

namespace RectorPrefix202209\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;
    }
}

Zerion Mini Shell 1.0