~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

 * The internal storage of history, and logical branch identity have now
   been split into Branch, and Repository. The common locking and file 
   management routines are now in bzrlib.lockablefiles. 
   (Aaron Bentley, Robert Collins, Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
    This should never escape bzr, so does not need to be printable.
464
464
    """
465
465
 
 
466
 
466
467
class MissingText(BzrNewError):
467
468
    """Branch %(base)s is missing revision %(text_revision)s of %(file_id)s"""
468
469
 
475
476
 
476
477
 
477
478
class BzrBadParameter(BzrNewError):
478
 
    """Parameter %(param)s is neither unicode nor utf8."""
 
479
    """A bad parameter : %(param)s is not usable.
479
480
    
 
481
    This exception should never be thrown, but it is a base class for all
 
482
    parameter-to-function errors.
 
483
    """
480
484
    def __init__(self, param):
481
485
        BzrNewError.__init__(self)
482
486
        self.param = param
 
487
 
 
488
 
 
489
class BzrBadParameterNotUnicode(BzrBadParameter):
 
490
    """Parameter %(param)s is neither unicode nor utf8."""
 
491
    
 
492
 
 
493
class BzrBadParameterNotString(BzrBadParameter):
 
494
    """Parameter %(param)s is not a string or unicode string."""