~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2008-07-16 18:14:23 UTC
  • mfrom: (3542 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3543.
  • Revision ID: john@arbash-meinel.com-20080716181423-9xbj5va4eakfjlqf
Merge bzr.dev 3542

Show diffs side-by-side

added added

removed removed

Lines of Context:
562
562
        PathError.__init__(self, base, reason)
563
563
 
564
564
 
 
565
class InvalidRebaseURLs(PathError):
 
566
 
 
567
    _fmt = "URLs differ by more than path: %(from_)r and %(to)r"
 
568
 
 
569
    def __init__(self, from_, to):
 
570
        self.from_ = from_
 
571
        self.to = to
 
572
        PathError.__init__(self, from_, 'URLs differ by more than path.')
 
573
 
 
574
 
565
575
class UnavailableRepresentation(InternalBzrError):
566
576
 
567
577
    _fmt = ("The encoding '%(wanted)s' is not available for key %(key)s which "
848
858
        BzrError.__init__(self, filename=filename, kind=kind)
849
859
 
850
860
 
 
861
class BadFilenameEncoding(BzrError):
 
862
 
 
863
    _fmt = ('Filename %(filename)r is not valid in your current filesystem'
 
864
            ' encoding %(fs_encoding)s')
 
865
 
 
866
    def __init__(self, filename, fs_encoding):
 
867
        BzrError.__init__(self)
 
868
        self.filename = filename
 
869
        self.fs_encoding = fs_encoding
 
870
 
 
871
 
851
872
class ForbiddenControlFileError(BzrError):
852
873
 
853
874
    _fmt = 'Cannot operate on "%(filename)s" because it is a control file'
2760
2781
    def __init__(self, host, port, orig_error):
2761
2782
        BzrError.__init__(self, host=host, port=port,
2762
2783
            orig_error=orig_error[1])
 
2784
 
 
2785
 
 
2786
class UnknownRules(BzrError):
 
2787
 
 
2788
    _fmt = ('Unknown rules detected: %(unknowns_str)s.')
 
2789
 
 
2790
    def __init__(self, unknowns):
 
2791
        BzrError.__init__(self, unknowns_str=", ".join(unknowns))