~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2006-01-05 22:30:59 UTC
  • mto: (1534.1.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: robertc@robertcollins.net-20060105223059-a8b64f7b47cf12fb
 * bzrlib.osutils.safe_unicode now exists to provide parameter coercion
   for functions that need unicode strings. (Robert Collins)

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