Amp\Failure::__construct PHP Method

__construct() public method

public __construct ( Throwable $exception )
$exception Throwable Rejection reason.
    public function __construct(\Throwable $exception)
    {
        $this->exception = $exception;
    }