/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: Andrew Bennetts
  • Date: 2008-04-02 00:14:00 UTC
  • mfrom: (3324 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080402001400-r1pqse38i03dl97w
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
540
540
 
541
541
class InvalidURLJoin(PathError):
542
542
 
543
 
    _fmt = 'Invalid URL join request: "%(args)s"%(extra)s'
 
543
    _fmt = "Invalid URL join request: %(reason)s: %(base)r + %(join_args)r"
544
544
 
545
 
    def __init__(self, msg, base, args):
546
 
        PathError.__init__(self, base, msg)
547
 
        self.args = [base] + list(args)
 
545
    def __init__(self, reason, base, join_args):
 
546
        self.reason = reason
 
547
        self.base = base
 
548
        self.join_args = join_args
 
549
        PathError.__init__(self, base, reason)
548
550
 
549
551
 
550
552
class UnknownHook(BzrError):
2182
2184
 
2183
2185
    _fmt = "No smart server available at %(url)s"
2184
2186
 
 
2187
    @symbol_versioning.deprecated_method(symbol_versioning.one_four)
2185
2188
    def __init__(self, url):
2186
2189
        self.url = url
2187
2190
 
2582
2585
        self.timezone = timezone
2583
2586
 
2584
2587
 
 
2588
class NotATerminal(BzrError):
 
2589
 
 
2590
    _fmt = 'Unable to ask for a password without real terminal.'
 
2591
 
 
2592
 
2585
2593
class UnableEncodePath(BzrError):
2586
2594
 
2587
2595
    _fmt = ('Unable to encode %(kind)s path %(path)r in '