/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 bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-01-30 21:12:30 UTC
  • mfrom: (2245.1.3 branch-hook)
  • Revision ID: pqm@pqm.ubuntu.com-20070130211230-64c2d9b4bce9304f
(robertc) Add Branch hooks faciity, allowing clean creation and management of hooks around branch API calls.

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'