~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

[merge] robertc/integration 1441

Show diffs side-by-side

added added

removed removed

Lines of Context:
448
448
        BzrNewError.__init__(self)
449
449
        self.graph = graph
450
450
 
 
451
 
451
452
class NotConflicted(BzrNewError):
452
453
    """File %(filename)s is not conflicted."""
 
454
 
453
455
    def __init__(self, filename):
454
456
        BzrNewError.__init__(self)
455
457
        self.filename = filename
456
458
 
 
459
 
457
460
class MustUseDecorated(Exception):
458
461
    """A decorating function has requested its original command be used.
459
462
    
462
465
 
463
466
class MissingText(BzrNewError):
464
467
    """Branch %(base)s is missing revision %(text_revision)s of %(file_id)s"""
 
468
 
465
469
    def __init__(self, branch, text_revision, file_id):
 
470
        BzrNewError.__init__(self)
466
471
        self.branch = branch
467
472
        self.base = branch.base
468
473
        self.text_revision = text_revision
469
474
        self.file_id = file_id
 
475
 
 
476
 
 
477
class BzrBadParameter(BzrNewError):
 
478
    """Parameter %(param)s is neither unicode nor utf8."""
 
479
    
 
480
    def __init__(self, param):
 
481
        BzrNewError.__init__(self)
 
482
        self.param = param