/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2017-07-21 14:18:24 UTC
  • mfrom: (6729.6.2 move-errors-urlutils)
  • Revision ID: jelmer@jelmer.uk-20170721141824-z0s7jhoijaxw5bim
Merge lp:~jelmer/brz/move-errors-urlutils.

Show diffs side-by-side

added added

removed removed

Lines of Context:
489
489
    _fmt = 'Permission denied: "%(path)s"%(extra)s'
490
490
 
491
491
 
492
 
class InvalidURL(PathError):
493
 
 
494
 
    _fmt = 'Invalid url supplied to transport: "%(path)s"%(extra)s'
495
 
 
496
 
 
497
 
class InvalidURLJoin(PathError):
498
 
 
499
 
    _fmt = "Invalid URL join request: %(reason)s: %(base)r + %(join_args)r"
500
 
 
501
 
    def __init__(self, reason, base, join_args):
502
 
        self.reason = reason
503
 
        self.base = base
504
 
        self.join_args = join_args
505
 
        PathError.__init__(self, base, reason)
506
 
 
507
 
 
508
 
class InvalidRebaseURLs(PathError):
509
 
 
510
 
    _fmt = "URLs differ by more than path: %(from_)r and %(to)r"
511
 
 
512
 
    def __init__(self, from_, to):
513
 
        self.from_ = from_
514
 
        self.to = to
515
 
        PathError.__init__(self, from_, 'URLs differ by more than path.')
516
 
 
517
 
 
518
492
class UnavailableRepresentation(InternalBzrError):
519
493
 
520
494
    _fmt = ("The encoding '%(wanted)s' is not available for key %(key)s which "