/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

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
        self.branch = branch
175
175
 
176
176
 
 
177
class NoSuchId(BzrNewError):
 
178
    """The file id %(file_id)s is not present in the tree %(tree)s."""
 
179
    
 
180
    def __init__(self, tree, file_id):
 
181
        BzrNewError.__init__(self)
 
182
        self.file_id = file_id
 
183
        self.tree = tree
 
184
 
 
185
 
177
186
class NoWorkingTree(BzrNewError):
178
187
    """No WorkingTree exists for %(base)s."""
179
188
    
795
804
 
796
805
 
797
806
class InvalidRange(TransportError):
798
 
    """Invalid range access."""
 
807
    """Invalid range access in %(path)s at %(offset)s."""
799
808
    
800
809
    def __init__(self, path, offset):
801
810
        TransportError.__init__(self, ("Invalid range access in %s at %d"
802
811
                                       % (path, offset)))
 
812
        self.path = path
 
813
        self.offset = offset
803
814
 
804
815
 
805
816
class InvalidHttpResponse(TransportError):
981
992
        DependencyNotPresent.__init__(self, 'paramiko', error)
982
993
 
983
994
 
 
995
class PointlessMerge(BzrNewError):
 
996
    """Nothing to merge."""
 
997
 
 
998
 
984
999
class UninitializableFormat(BzrNewError):
985
1000
    """Format %(format)s cannot be initialised by this version of bzr."""
986
1001