~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1332
1332
 
1333
1333
 
1334
1334
class KnitDataStreamIncompatible(KnitError):
 
1335
    # Not raised anymore, as we can convert data streams.  In future we may
 
1336
    # need it again for more exotic cases, so we're keeping it around for now.
1335
1337
 
1336
1338
    _fmt = "Cannot insert knit data stream of format \"%(stream_format)s\" into knit of format \"%(target_format)s\"."
1337
1339
 
1340
1342
        self.target_format = target_format
1341
1343
        
1342
1344
 
 
1345
class KnitDataStreamUnknown(KnitError):
 
1346
    # Indicates a data stream we don't know how to handle.
 
1347
 
 
1348
    _fmt = "Cannot parse knit data stream of format \"%(stream_format)s\"."
 
1349
 
 
1350
    def __init__(self, stream_format):
 
1351
        self.stream_format = stream_format
 
1352
        
 
1353
 
1343
1354
class KnitHeaderError(KnitError):
1344
1355
 
1345
1356
    _fmt = 'Knit header error: %(badline)r unexpected for file "%(filename)s".'
1846
1857
        self.format = format
1847
1858
 
1848
1859
 
 
1860
class NoDiffFound(BzrError):
 
1861
 
 
1862
    _fmt = 'Could not find an appropriate Differ for file "%(path)s"'
 
1863
 
 
1864
    def __init__(self, path):
 
1865
        BzrError.__init__(self, path)
 
1866
 
 
1867
 
1849
1868
class NoDiff(BzrError):
1850
1869
 
1851
1870
    _fmt = "Diff is not installed on this machine: %(msg)s"
2373
2392
    _fmt = "No message supplied."
2374
2393
 
2375
2394
 
 
2395
class NoMailAddressSpecified(BzrError):
 
2396
 
 
2397
    _fmt = "No mail-to address specified."
 
2398
 
 
2399
 
2376
2400
class UnknownMailClient(BzrError):
2377
2401
 
2378
2402
    _fmt = "Unknown mail client: %(mail_client)s"
2429
2453
    _fmt = "'%(display_url)s' is already a checkout."
2430
2454
 
2431
2455
 
 
2456
class AlreadyLightweightCheckout(BzrDirError):
 
2457
 
 
2458
    _fmt = "'%(display_url)s' is already a lightweight checkout."
 
2459
 
 
2460
 
2432
2461
class ReconfigurationNotSupported(BzrDirError):
2433
2462
 
2434
2463
    _fmt = "Requested reconfiguration of '%(display_url)s' is not supported."