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

Tim Lauridsen tla at rasmil.dk
Mon Aug 20 14:06:00 UTC 2007


Jeremy Katz wrote:
> 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
>   
Yes, offcause the make a lot of sense :-) .
New patch added.

Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.baseurl.org/pipermail/yum-devel/attachments/20070820/a527fb43/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-extra-errors-2.patch
Type: text/x-patch
Size: 2525 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070820/a527fb43/attachment.bin 


More information about the Yum-devel mailing list