~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2005-06-06 04:47:33 UTC
  • Revision ID: mbp@sourcefrog.net-20050606044733-e902b05ac1747cd2
- fix invocation of testbzr when giving explicit bzr location

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    pass
40
40
 
41
41
 
42
 
class NotVersionedError(BzrError):
43
 
    """Specified object is not versioned."""
44
 
 
45
 
 
46
42
class BadFileKindError(BzrError):
47
43
    """Specified file is of a kind that cannot be added.
48
44
 
66
62
            Exception.__init__(self, e)
67
63
        else:
68
64
            Exception.__init__(self)
 
65
 
 
66
 
 
67
 
 
68
def bailout(msg, explanation=[]):
 
69
    ex = BzrError(msg, explanation)
 
70
    import trace
 
71
    trace._tracefile.write('* raising %s\n' % ex)
 
72
    raise ex
 
73