~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: mbp at sourcefrog
  • Date: 2007-02-13 05:22:39 UTC
  • mfrom: (2279 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2283.
  • Revision ID: mbp@sourcefrog.net-20070213052239-09atqsahwth6zdm1
(merge) trunk

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'
1667
1677
class NoSmartMedium(BzrError):
1668
1678
 
1669
1679
    _fmt = "The transport '%(transport)s' cannot tunnel the smart protocol."
 
1680
    internal_error = True
1670
1681
 
1671
1682
    def __init__(self, transport):
1672
1683
        self.transport = transport