~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to errors.py

  • Committer: Aaron Bentley
  • Date: 2006-03-18 17:14:51 UTC
  • mfrom: (0.1.98 shelf)
  • Revision ID: aaron.bentley@utoronto.ca-20060318171451-2b15a9bcf7b77d69
Merge from shelf

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
class PatchFailed(Exception):
28
28
    """Failed applying patch!"""
29
 
 
30
 
class NotCheckout(CommandError):
31
 
    """Specified path is not a checkout."""
32
 
    def __init__(self, path):
33
 
        CommandError.__init__(self, "%s is not a checkout" % path)
34
 
 
35
 
class UncommittedCheckout(CommandError):
36
 
    """This checkout contains uncommitted changes"""
37
 
    def __init__(self):
38
 
        CommandError.__init__(self, "This checkout has uncommitted changes")
39
 
 
40
 
class ParentMissingRevisions(CommandError):
41
 
    """The parent branch is missing revisions."""
42
 
    def __init__(self, parent):
43
 
        CommandError.__init__(self, 
44
 
            "The parent branch %s is missing revisions from this branch." % 
45
 
            parent)
46
 
        self.parent = parent
47
 
 
48
 
class NoParent(CommandError):
49
 
    def __init__(self):
50
 
        CommandError.__init__(self, "There is no parent, so deleting the"
51
 
                                    " branch could destroy data.")