/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: Aaron Bentley
  • Date: 2007-12-20 00:56:46 UTC
  • mfrom: (3131 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3133.
  • Revision ID: aaron.bentley@utoronto.ca-20071220005646-cfebcxoxqtpsk3uo
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
653
653
 
654
654
class FileInWrongBranch(BzrError):
655
655
 
656
 
    _fmt = 'File "%(path)s" in not in branch %(branch_base)s.'
 
656
    _fmt = 'File "%(path)s" is not in branch %(branch_base)s.'
657
657
 
658
658
    def __init__(self, branch, path):
659
659
        BzrError.__init__(self)
1461
1461
 
1462
1462
class InvalidRange(TransportError):
1463
1463
 
1464
 
    _fmt = "Invalid range access in %(path)s at %(offset)s."
1465
 
    
1466
 
    def __init__(self, path, offset):
1467
 
        TransportError.__init__(self, ("Invalid range access in %s at %d"
1468
 
                                       % (path, offset)))
 
1464
    _fmt = "Invalid range access in %(path)s at %(offset)s: %(msg)s"
 
1465
 
 
1466
    def __init__(self, path, offset, msg=None):
 
1467
        TransportError.__init__(self, msg)
1469
1468
        self.path = path
1470
1469
        self.offset = offset
1471
1470
 
1482
1481
class InvalidHttpRange(InvalidHttpResponse):
1483
1482
 
1484
1483
    _fmt = "Invalid http range %(range)r for %(path)s: %(msg)s"
1485
 
    
 
1484
 
1486
1485
    def __init__(self, path, range, msg):
1487
1486
        self.range = range
1488
1487
        InvalidHttpResponse.__init__(self, path, msg)
1491
1490
class InvalidHttpContentType(InvalidHttpResponse):
1492
1491
 
1493
1492
    _fmt = 'Invalid http Content-type "%(ctype)s" for %(path)s: %(msg)s'
1494
 
    
 
1493
 
1495
1494
    def __init__(self, path, ctype, msg):
1496
1495
        self.ctype = ctype
1497
1496
        InvalidHttpResponse.__init__(self, path, msg)
2495
2494
        BzrError.__init__(self, tree=tree, display_url=display_url)
2496
2495
 
2497
2496
 
 
2497
class MissingTemplateVariable(BzrError):
 
2498
 
 
2499
    _fmt = 'Variable {%(name)s} is not available.'
 
2500
 
 
2501
    def __init__(self, name):
 
2502
        self.name = name
 
2503
 
 
2504
 
2498
2505
class UnableCreateSymlink(BzrError):
2499
2506
 
2500
2507
    _fmt = 'Unable to create symlink %(path_str)son this platform'