~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2006-04-20 01:29:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1675.
  • Revision ID: mbp@sourcefrog.net-20060420012904-b3166df65e728801
Translate unknown sftp errors to PathError, no NoSuchFile

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
# TODO: Convert all the other error classes here to BzrNewError, and eliminate
69
69
# the old one.
70
70
 
 
71
# TODO: The pattern (from hct) of using classes docstrings as message
 
72
# templates is cute but maybe not such a great idea - perhaps should have a
 
73
# separate static message_template.
 
74
 
71
75
 
72
76
class BzrError(StandardError):
73
77
    def __str__(self):
172
176
    """Commit refused because there are unknowns in the tree."""
173
177
 
174
178
 
 
179
# XXX: Should be unified with TransportError; they seem to represent the
 
180
# same thing
175
181
class PathError(BzrNewError):
176
182
    """Generic path error: %(path)r%(extra)s)"""
177
183