~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-31 15:19:21 UTC
  • mto: (1587.1.6 bound-branches)
  • mto: This revision was merged to the branch mainline in revision 1590.
  • Revision ID: john@arbash-meinel.com-20051231151921-351e2877d360e537
Added special exceptions when unable to contact parent branch. Added tests for failure. bind() no longer updates the remote working tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
        BzrNewError.__init__(self)
368
368
        self.branch = branch
369
369
 
370
 
        
 
370
 
 
371
class BoundBranchConnectionFailure(BzrNewError):
 
372
    """Unable to connect to target of bound branch %(branch)s => %(target)s: %(error)s"""
 
373
    def __init__(self, branch, target, error):
 
374
        BzrNewError.__init__(self)
 
375
        self.branch = branch
 
376
        self.target = target
 
377
        self.error = error
 
378
 
 
379
 
371
380
class WeaveError(BzrNewError):
372
381
    """Error in processing weave: %(message)s"""
373
382
    def __init__(self, message=None):