~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2005-07-26 14:06:11 UTC
  • mto: (1092.1.41) (1185.3.4) (974.1.47)
  • mto: This revision was merged to the branch mainline in revision 982.
  • Revision ID: abentley@panoramicfeedback.com-20050726140611-403e366f3c79c1f1
Fixed python invocation

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