~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Refactored the export code to make it easier to add new export formats.

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
    """Parents are mismatched between two revisions."""
326
326
    
327
327
 
 
328
class NoSuchExportFormat(BzrNewError):
 
329
    """Export format %(format)r not supported"""
 
330
    def __init__(self, format):
 
331
        BzrNewError.__init__(self)
 
332
        self.format = format
 
333
 
 
334
 
328
335
class TransportError(BzrError):
329
336
    """All errors thrown by Transport implementations should derive
330
337
    from this class.