Adapt Base and YumBaseCli methods to behave more similarly.

It means: to raise exceptions instead of returning integer codes.