Kraken\Promise\Promise::getReason PHP Method

getReason() protected method

Return rejection or cancellation reason for Promise.
protected getReason ( ) : Erro\Error | Exceptio\Exception | string | null
return Erro\Error | Exceptio\Exception | string | null
    protected function getReason()
    {
        return $this->isRejected() || $this->isCancelled() ? $this->result->getReason() : null;
    }