/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-15 13:23:08 UTC
  • mto: This revision was merged to the branch mainline in revision 6738.
  • Revision ID: jelmer@jelmer.uk-20170715132308-1rcazg0fb2pdax0w
Move urlutils errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
511
511
    _fmt = 'Permission denied: "%(path)s"%(extra)s'
512
512
 
513
513
 
514
 
class InvalidURL(PathError):
515
 
 
516
 
    _fmt = 'Invalid url supplied to transport: "%(path)s"%(extra)s'
517
 
 
518
 
 
519
 
class InvalidURLJoin(PathError):
520
 
 
521
 
    _fmt = "Invalid URL join request: %(reason)s: %(base)r + %(join_args)r"
522
 
 
523
 
    def __init__(self, reason, base, join_args):
524
 
        self.reason = reason
525
 
        self.base = base
526
 
        self.join_args = join_args
527
 
        PathError.__init__(self, base, reason)
528
 
 
529
 
 
530
 
class InvalidRebaseURLs(PathError):
531
 
 
532
 
    _fmt = "URLs differ by more than path: %(from_)r and %(to)r"
533
 
 
534
 
    def __init__(self, from_, to):
535
 
        self.from_ = from_
536
 
        self.to = to
537
 
        PathError.__init__(self, from_, 'URLs differ by more than path.')
538
 
 
539
 
 
540
514
class UnavailableRepresentation(InternalBzrError):
541
515
 
542
516
    _fmt = ("The encoding '%(wanted)s' is not available for key %(key)s which "