~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 11:53:29 UTC
  • Revision ID: mbp@sourcefrog.net-20050606115329-1596352add25bffd
- merge aaron's updated merge/pull code

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
 
68
64
            Exception.__init__(self)
69
65
 
70
66
 
71
 
class PointlessCommit(Exception):
72
 
    """Commit failed because nothing was changed."""
 
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