src/Failure/RedisBackend.php
protected function getDistalCause(\Exception $exception)
    {
        if (($previous = $exception->getPrevious())) {
            return $this->getDistalCause($previous);
        }
        return $exception;
    }
protected function getDistalCause(\Exception $exception)
    {
        if (($previous = $exception->getPrevious())) {
            return $this->getDistalCause($previous);
        }
        return $exception;
    }
protected function getDistalCause ( \ Exception $ exception ) { if ( ( $ previous = $ exception -> getPrevious ( ) ) ) { return $ this -> getDistalCause ( $ previous ) ; } return $ exception ; }
Find the ultimate cause exception, by following previous members right back

@param Exception $exception
@return Exception
Find the ultimate cause exception by following previous members right back