Refactoring of Exceptions
John A Meinel
john at arbash-meinel.com
Thu Dec 1 21:32:12 GMT 2005
I just committed a change on my integration branch which refactors some
of the NoSuchFile, FileExists, etc exceptions.
While I was working on the win32 changes, I was getting some unhelpful
exceptions, so I decided to refactor them. Now they are BzrNewErrors,
and all of them give a path, as well as giving the original exception, etc.
It also means that "osutils.relpath" now raises PathNotChild rather than
raising NotBranchError().
Which meant I found a few places that were catching the wrong exception
(NoSuchFile used to be a child of IOError, etc).
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051201/ea2e1f15/attachment.pgp
More information about the bazaar
mailing list