~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

first cut at merge from integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
    This should never escape bzr, so does not need to be printable.
476
476
    """
477
477
 
 
478
 
478
479
class MissingText(BzrNewError):
479
480
    """Branch %(base)s is missing revision %(text_revision)s of %(file_id)s"""
480
481
 
487
488
 
488
489
 
489
490
class BzrBadParameter(BzrNewError):
490
 
    """Parameter %(param)s is neither unicode nor utf8."""
 
491
    """A bad parameter : %(param)s is not usable.
491
492
    
 
493
    This exception should never be thrown, but it is a base class for all
 
494
    parameter-to-function errors.
 
495
    """
492
496
    def __init__(self, param):
493
497
        BzrNewError.__init__(self)
494
498
        self.param = param
495
499
 
496
500
 
 
501
class BzrBadParameterNotUnicode(BzrBadParameter):
 
502
    """Parameter %(param)s is neither unicode nor utf8."""
 
503
 
 
504
 
 
505
class BzrBadParameterNotString(BzrBadParameter):
 
506
    """Parameter %(param)s is not a string or unicode string."""
 
507
 
 
508
 
497
509
class UninitializableFormat(BzrNewError):
498
510
    """Format %(format)s cannot be initialised by this version of bzr."""
499
511