/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-03-17 22:16:52 UTC
  • mfrom: (3290 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3295.
  • Revision ID: bialix@ukr.net-20080317221652-gwq1ohxini63zhum
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
684
684
 
685
685
class UnknownFormatError(BzrError):
686
686
    
687
 
    _fmt = "Unknown branch format: %(format)r"
 
687
    _fmt = "Unknown %(kind)s format: %(format)r"
 
688
 
 
689
    def __init__(self, format, kind='branch'):
 
690
        self.kind = kind
 
691
        self.format = format
688
692
 
689
693
 
690
694
class IncompatibleFormat(BzrError):
2580
2584
 
2581
2585
class NotATerminal(BzrError):
2582
2586
 
2583
 
    _fmt = 'Unable to ask password without real terminal.'
 
2587
    _fmt = 'Unable to ask for a password without real terminal.'
 
2588
 
 
2589
 
 
2590
class UnableEncodePath(BzrError):
 
2591
 
 
2592
    _fmt = ('Unable to encode %(kind)s path %(path)r in '
 
2593
            'user encoding %(user_encoding)s')
 
2594
 
 
2595
    def __init__(self, path, kind):
 
2596
        self.path = path
 
2597
        self.kind = kind
 
2598
        self.user_encoding = osutils.get_user_encoding()