~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to errors.py

  • Committer: Aaron Bentley
  • Date: 2006-03-22 22:25:30 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060322222530-56b616e026dc6ac3
Text updates

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")