~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2005-05-30 05:10:41 UTC
  • Revision ID: mbp@sourcefrog.net-20050530051041-151c592d94481593
- better error reporting from smart_add

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    pass
40
40
 
41
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
 
42
54
def bailout(msg, explanation=[]):
43
55
    ex = BzrError(msg, explanation)
44
56
    import trace