~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2005-07-04 11:57:18 UTC
  • Revision ID: mbp@sourcefrog.net-20050704115718-b532986c0714e7a7
- don't write precursor field in new revision xml
- make parents more primary; remove more precursor code
- test commit of revision with parents

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
 
42
46
class BadFileKindError(BzrError):
43
47
    """Specified file is of a kind that cannot be added.
44
48
 
62
66
            Exception.__init__(self, e)
63
67
        else:
64
68
            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