[Yum-devel] [PATCH] Extra Yum Error Exceptions

Jeremy Katz katzj at redhat.com
Mon Aug 20 13:52:56 UTC 2007


On Mon, 2007-08-20 at 15:41 +0200, Tim Lauridsen wrote:
> After adding prepareTransaction & helpers to YumBase a YumBaseError
> exception is raised if any thing goes wrong.
> but i would be nice to see, if it was Download or GPGCheck or
> TestTransaction there went wrong.
> So i have created a patch with some extra Yum Exception and make the
> different step cast a custom exception.
> Just want to know if the naming look sane, before committing.

Naming seems fine -- it's worth making the new exceptions distinct
classes rather than equal, though, so that you can actually distinguish
between them when they're raised

Jeremy




More information about the Yum-devel mailing list