~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:
29
29
    pass
30
30
 
31
31
 
 
32
class BzrCommandError(BzrError):
 
33
    # Error from malformed user command
 
34
    pass
 
35
 
 
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
32
52
 
33
53
 
34
54
def bailout(msg, explanation=[]):