~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-02-28 18:51:18 UTC
  • mto: (2323.6.9 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2330.
  • Revision ID: abentley@panoramicfeedback.com-20070228185118-9m1ko9deqtokocil
Got directives round-tripping, with bundles and everything

Show diffs side-by-side

added added

removed removed

Lines of Context:
1781
1781
    def __init__(self, name):
1782
1782
        BzrError.__init__(self)
1783
1783
        self.name = name
 
1784
 
 
1785
 
 
1786
class NoMergeSource(BzrError):
 
1787
    """Raise if no merge source was specified for a merge directive"""
 
1788
 
 
1789
    _fmt = "A merge directive must provide either a bundle or a public"\
 
1790
        "branch location."
 
1791
 
 
1792
 
 
1793
class PatchMissing(BzrError):
 
1794
    """Raise a patch type was specified but no patch supplied"""
 
1795
 
 
1796
    _fmt = "patch_type was %(patch_type)s, but no patch was supplied."
 
1797
 
 
1798
    def __init__(self, patch_type):
 
1799
        BzrError.__init__(self)
 
1800
        self.patch_type = patch_type