~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2005-05-05 02:59:39 UTC
  • Revision ID: mbp@sourcefrog.net-20050505025938-8399b9ca401a1176
- Split out help functions into bzrlib.help

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    pass
35
35
 
36
36
 
37
 
class NotBranchError(BzrError):
38
 
    """Specified path is not in a branch"""
39
 
    pass
40
 
 
41
 
 
42
 
class BadFileKindError(BzrError):
43
 
    """Specified file is of a kind that cannot be added.
44
 
 
45
 
    (For example a symlink or device file.)"""
46
 
    pass
47
 
 
48
 
 
49
 
class ForbiddenFileError(BzrError):
50
 
    """Cannot operate on a file because it is a control file."""
51
 
    pass
52
 
 
53
 
 
54
37
def bailout(msg, explanation=[]):
55
38
    ex = BzrError(msg, explanation)
56
39
    import trace