~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2007-07-25 00:52:21 UTC
  • mfrom: (2650 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2651.
  • Revision ID: robertc@robertcollins.net-20070725005221-0ysm6il5mqnme3wz
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
        self.current = current
199
199
 
200
200
 
 
201
class InProcessTransport(BzrError):
 
202
 
 
203
    _fmt = "The transport '%(transport)s' is only accessible within this " \
 
204
        "process."
 
205
 
 
206
    def __init__(self, transport):
 
207
        self.transport = transport
 
208
 
 
209
 
201
210
class InvalidEntryName(BzrError):
202
211
    
203
212
    _fmt = "Invalid entry name: %(name)s"
536
545
        self.actual = actual
537
546
 
538
547
 
539
 
class PathNotChild(BzrError):
 
548
class PathNotChild(PathError):
540
549
 
541
550
    _fmt = "Path %(path)r is not a child of path %(base)r%(extra)s"
542
551
 
1263
1272
        self.file_id = file_id
1264
1273
 
1265
1274
 
 
1275
class VersionedFileInvalidChecksum(VersionedFileError):
 
1276
 
 
1277
    _fmt = "Text did not match its checksum: %(message)s"
 
1278
 
 
1279
 
1266
1280
class KnitError(BzrError):
1267
1281
    
1268
1282
    _fmt = "Knit error"
2114
2128
        " branch location."
2115
2129
 
2116
2130
 
 
2131
class IllegalMergeDirectivePayload(BzrError):
 
2132
    """A merge directive contained something other than a patch or bundle"""
 
2133
 
 
2134
    _fmt = "Bad merge directive payload %(start)r"
 
2135
 
 
2136
    def __init__(self, start):
 
2137
        BzrError(self)
 
2138
        self.start = start
 
2139
 
 
2140
 
 
2141
class PatchVerificationFailed(BzrError):
 
2142
    """A patch from a merge directive could not be verified"""
 
2143
 
 
2144
    _fmt = "Preview patch does not match requested changes."
 
2145
 
 
2146
 
2117
2147
class PatchMissing(BzrError):
2118
2148
    """Raise a patch type was specified but no patch supplied"""
2119
2149