/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-03-12 20:13:07 UTC
  • mfrom: (3267 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080312201307-ngd5bynt2nvhnlb7
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
508
508
    _fmt = 'Directory not empty: "%(path)s"%(extra)s'
509
509
 
510
510
 
 
511
class HardLinkNotSupported(PathError):
 
512
 
 
513
    _fmt = 'Hard-linking "%(path)s" is not supported'
 
514
 
 
515
 
511
516
class ReadingCompleted(InternalBzrError):
512
517
    
513
518
    _fmt = ("The MediumRequest '%(request)s' has already had finish_reading "
678
683
 
679
684
class UnknownFormatError(BzrError):
680
685
    
681
 
    _fmt = "Unknown branch format: %(format)r"
 
686
    _fmt = "Unknown %(kind)s format: %(format)r"
 
687
 
 
688
    def __init__(self, format, kind='branch'):
 
689
        self.kind = kind
 
690
        self.format = format
682
691
 
683
692
 
684
693
class IncompatibleFormat(BzrError):
2571
2580
 
2572
2581
    def __init__(self, timezone):
2573
2582
        self.timezone = timezone
 
2583
 
 
2584
 
 
2585
class UnableEncodePath(BzrError):
 
2586
 
 
2587
    _fmt = ('Unable to encode %(kind)s path %(path)r in '
 
2588
            'user encoding %(user_encoding)s')
 
2589
 
 
2590
    def __init__(self, path, kind):
 
2591
        self.path = path
 
2592
        self.kind = kind
 
2593
        self.user_encoding = osutils.get_user_encoding()