~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2007-08-17 08:31:52 UTC
  • mto: This revision was merged to the branch mainline in revision 3320.
  • Revision ID: andrew.bennetts@canonical.com-20070817083152-rmhqerwquini7tiz
Add translate_client_path method to SmartServerRequest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
501
501
 
502
502
class InvalidURLJoin(PathError):
503
503
 
504
 
    _fmt = "Invalid URL join request: %(args)s%(extra)s"
 
504
    _fmt = "Invalid URL join request: %(reason)s: %(base)r + %(join_args)r"
505
505
 
506
 
    def __init__(self, msg, base, args):
507
 
        PathError.__init__(self, base, msg)
508
 
        self.args = [base] + list(args)
 
506
    def __init__(self, reason, base, join_args):
 
507
        self.reason = reason
 
508
        self.base = base
 
509
        self.join_args = join_args
 
510
        PathError.__init__(self, base, reason)
509
511
 
510
512
 
511
513
class UnknownHook(BzrError):