~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Implement interrupting body streams with an error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2379
2379
        self.response_tuple = response_tuple
2380
2380
 
2381
2381
 
 
2382
class ErrorFromSmartServer(BzrError):
 
2383
 
 
2384
    _fmt = "Error received from smart server: %(error_tuple)r"
 
2385
 
 
2386
    internal_error = True
 
2387
 
 
2388
    def __init__(self, error_tuple):
 
2389
        self.error_tuple = error_tuple
 
2390
 
 
2391
 
2382
2392
class ContainerError(BzrError):
2383
2393
    """Base class of container errors."""
2384
2394