~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2007-01-30 11:52:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2246.
  • Revision ID: robertc@robertcollins.net-20070130115230-2052dzn5xo9h6o07
Add install_hook to the BranchHooks class as the official means for installing a hook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
405
405
        self.args = [base] + list(args)
406
406
 
407
407
 
 
408
class UnknownHook(BzrError):
 
409
 
 
410
    _fmt = "The %(type)s hook '%(hook)s' is unknown in this version of bzrlib."
 
411
 
 
412
    def __init__(self, hook_type, hook_name):
 
413
        BzrError.__init__(self)
 
414
        self.type = hook_type
 
415
        self.hook = hook_name
 
416
 
 
417
 
408
418
class UnsupportedProtocol(PathError):
409
419
 
410
420
    _fmt = 'Unsupported protocol for url "%(path)s"%(extra)s'