/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-01-04 03:12:11 UTC
  • mfrom: (3164 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3320.
  • Revision ID: andrew.bennetts@canonical.com-20080104031211-wy4uxo2j4elvip1j
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
655
655
 
656
656
class FileInWrongBranch(BzrError):
657
657
 
658
 
    _fmt = 'File "%(path)s" in not in branch %(branch_base)s.'
 
658
    _fmt = 'File "%(path)s" is not in branch %(branch_base)s.'
659
659
 
660
660
    def __init__(self, branch, path):
661
661
        BzrError.__init__(self)
1103
1103
            " no merge base revision was specified.")
1104
1104
 
1105
1105
 
 
1106
class CannotReverseCherrypick(BzrError):
 
1107
 
 
1108
    _fmt = ('Selected merge cannot perform reverse cherrypicks.  Try merge3'
 
1109
            ' or diff3.')
 
1110
 
 
1111
 
1106
1112
class NoCommonAncestor(BzrError):
1107
1113
    
1108
1114
    _fmt = "Revisions have no common ancestor: %(revision_a)s %(revision_b)s"
1457
1463
 
1458
1464
class InvalidRange(TransportError):
1459
1465
 
1460
 
    _fmt = "Invalid range access in %(path)s at %(offset)s."
1461
 
    
1462
 
    def __init__(self, path, offset):
1463
 
        TransportError.__init__(self, ("Invalid range access in %s at %d"
1464
 
                                       % (path, offset)))
 
1466
    _fmt = "Invalid range access in %(path)s at %(offset)s: %(msg)s"
 
1467
 
 
1468
    def __init__(self, path, offset, msg=None):
 
1469
        TransportError.__init__(self, msg)
1465
1470
        self.path = path
1466
1471
        self.offset = offset
1467
1472
 
1478
1483
class InvalidHttpRange(InvalidHttpResponse):
1479
1484
 
1480
1485
    _fmt = "Invalid http range %(range)r for %(path)s: %(msg)s"
1481
 
    
 
1486
 
1482
1487
    def __init__(self, path, range, msg):
1483
1488
        self.range = range
1484
1489
        InvalidHttpResponse.__init__(self, path, msg)
1487
1492
class InvalidHttpContentType(InvalidHttpResponse):
1488
1493
 
1489
1494
    _fmt = 'Invalid http Content-type "%(ctype)s" for %(path)s: %(msg)s'
1490
 
    
 
1495
 
1491
1496
    def __init__(self, path, ctype, msg):
1492
1497
        self.ctype = ctype
1493
1498
        InvalidHttpResponse.__init__(self, path, msg)
1867
1872
        BzrError.__init__(self, path)
1868
1873
 
1869
1874
 
 
1875
class ExecutableMissing(BzrError):
 
1876
 
 
1877
    _fmt = "%(exe_name)s could not be found on this machine"
 
1878
 
 
1879
    def __init__(self, exe_name):
 
1880
        BzrError.__init__(self, exe_name=exe_name)
 
1881
 
 
1882
 
1870
1883
class NoDiff(BzrError):
1871
1884
 
1872
1885
    _fmt = "Diff is not installed on this machine: %(msg)s"
2491
2504
        BzrError.__init__(self, tree=tree, display_url=display_url)
2492
2505
 
2493
2506
 
 
2507
class MissingTemplateVariable(BzrError):
 
2508
 
 
2509
    _fmt = 'Variable {%(name)s} is not available.'
 
2510
 
 
2511
    def __init__(self, name):
 
2512
        self.name = name
 
2513
 
 
2514
 
2494
2515
class UnableCreateSymlink(BzrError):
2495
2516
 
2496
2517
    _fmt = 'Unable to create symlink %(path_str)son this platform'
2504
2525
                path_str = repr(path)
2505
2526
            path_str += ' '
2506
2527
        self.path_str = path_str
 
2528
 
 
2529
 
 
2530
class UnsupportedTimezoneFormat(BzrError):
 
2531
 
 
2532
    _fmt = ('Unsupported timezone format "%(timezone)s", '
 
2533
            'options are "utc", "original", "local".')
 
2534
 
 
2535
    def __init__(self, timezone):
 
2536
        self.timezone = timezone