exception guidelines for launchpad - good idea?

Martin Pool mbp at sourcefrog.net
Thu Dec 8 12:11:33 GMT 2005


On  8 Dec 2005, David Allouche <david at allouche.net> wrote:
> You are saying essentially the same thing as I did earlier in the
> discussion that lead to this coding guideline for Launchpad.
> 
> My proposal was:
> 
>         Please, let's never catch built-in exception types, except in
>         very narrow try-except clauses around language constructs or
>         standard library calls that raise them.
>         
>         As a corollary, never raise a built-in exception type, except
>         when doing sanity checking and when the client code is not
>         expected to treat that error condition in a specific way.

Yes, that's what I'm saying.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051208/500d1fe2/attachment.pgp 


More information about the bazaar mailing list