/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 bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
 
214
214
 
215
215
class UnsupportedFormatError(BzrError):
216
 
    """Specified path is a bzr branch that we cannot read."""
 
216
    """Specified path is a bzr branch that we recognize but cannot read."""
217
217
    def __str__(self):
218
218
        return 'unsupported branch format: %s' % self.args[0]
219
219
 
220
220
 
 
221
class UnknownFormatError(BzrError):
 
222
    """Specified path is a bzr branch whose format we do not recognize."""
 
223
    def __str__(self):
 
224
        return 'unknown branch format: %s' % self.args[0]
 
225
 
 
226
 
221
227
class NotVersionedError(BzrNewError):
222
228
    """%(path)s is not versioned"""
223
229
    def __init__(self, path):
258
264
    """No changes to commit"""
259
265
 
260
266
 
 
267
class UpgradeReadonly(BzrNewError):
 
268
    """Upgrade URL cannot work with readonly URL's."""
 
269
 
 
270
 
261
271
class StrictCommitFailed(Exception):
262
272
    """Commit refused because there are unknowns in the tree."""
263
273
 
503
513
 
504
514
class BzrBadParameterNotUnicode(BzrBadParameter):
505
515
    """Parameter %(param)s is neither unicode nor utf8."""
506
 
    
 
516
 
507
517
 
508
518
class BzrBadParameterNotString(BzrBadParameter):
509
519
    """Parameter %(param)s is not a string or unicode string."""
521
531
 
522
532
    def __init__(self, error):
523
533
        DependencyNotPresent.__init__(self, 'paramiko', error)
 
534
 
 
535
 
 
536
class UninitializableFormat(BzrNewError):
 
537
    """Format %(format)s cannot be initialised by this version of bzr."""
 
538
 
 
539
    def __init__(self, format):
 
540
        BzrNewError.__init__(self)
 
541
        self.format = format