Kraken\Promise\Promise::getReason PHP Метод

getReason() защищенный Метод

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