/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: Alexander Belchenko
  • Date: 2008-04-03 20:51:42 UTC
  • mfrom: (3331 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3337.
  • Revision ID: bialix@ukr.net-20080403205142-7b3q6eh1zhojuy0d
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
509
509
    _fmt = 'Directory not empty: "%(path)s"%(extra)s'
510
510
 
511
511
 
 
512
class HardLinkNotSupported(PathError):
 
513
 
 
514
    _fmt = 'Hard-linking "%(path)s" is not supported'
 
515
 
 
516
 
512
517
class ReadingCompleted(InternalBzrError):
513
518
    
514
519
    _fmt = ("The MediumRequest '%(request)s' has already had finish_reading "
536
541
 
537
542
class InvalidURLJoin(PathError):
538
543
 
539
 
    _fmt = 'Invalid URL join request: "%(args)s"%(extra)s'
 
544
    _fmt = "Invalid URL join request: %(reason)s: %(base)r + %(join_args)r"
540
545
 
541
 
    def __init__(self, msg, base, args):
542
 
        PathError.__init__(self, base, msg)
543
 
        self.args = [base] + list(args)
 
546
    def __init__(self, reason, base, join_args):
 
547
        self.reason = reason
 
548
        self.base = base
 
549
        self.join_args = join_args
 
550
        PathError.__init__(self, base, reason)
544
551
 
545
552
 
546
553
class UnknownHook(BzrError):
679
686
 
680
687
class UnknownFormatError(BzrError):
681
688
    
682
 
    _fmt = "Unknown branch format: %(format)r"
 
689
    _fmt = "Unknown %(kind)s format: %(format)r"
 
690
 
 
691
    def __init__(self, format, kind='branch'):
 
692
        self.kind = kind
 
693
        self.format = format
683
694
 
684
695
 
685
696
class IncompatibleFormat(BzrError):
2173
2184
 
2174
2185
    _fmt = "No smart server available at %(url)s"
2175
2186
 
 
2187
    @symbol_versioning.deprecated_method(symbol_versioning.one_four)
2176
2188
    def __init__(self, url):
2177
2189
        self.url = url
2178
2190
 
2571
2583
 
2572
2584
    def __init__(self, timezone):
2573
2585
        self.timezone = timezone
 
2586
 
 
2587
 
 
2588
class NotATerminal(BzrError):
 
2589
 
 
2590
    _fmt = 'Unable to ask for a password without real terminal.'
 
2591
 
 
2592
 
 
2593
class UnableEncodePath(BzrError):
 
2594
 
 
2595
    _fmt = ('Unable to encode %(kind)s path %(path)r in '
 
2596
            'user encoding %(user_encoding)s')
 
2597
 
 
2598
    def __init__(self, path, kind):
 
2599
        self.path = path
 
2600
        self.kind = kind
 
2601
        self.user_encoding = osutils.get_user_encoding()