~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-09 16:49:22 UTC
  • mfrom: (1534.10.27 bzr.ttransform)
  • Revision ID: pqm@pqm.ubuntu.com-20060409164922-071803e906c8b96d
New conflict-handling system

Show diffs side-by-side

added added

removed removed

Lines of Context:
804
804
    """Error in merge modified format"""
805
805
 
806
806
 
 
807
class ConflictFormatError(BzrNewError):
 
808
    """Format error in conflict listings"""
 
809
 
 
810
 
807
811
class CorruptRepository(BzrNewError):
808
812
    """An error has been detected in the repository %(repo_path)s.
809
813
Please run bzr reconcile on this repository."""
827
831
 
828
832
class MissingProgressBarFinish(BzrNewError):
829
833
    """A nested progress bar was not 'finished' correctly."""
 
834
 
 
835
 
 
836
class UnsupportedOperation(BzrNewError):
 
837
    """The method %(mname)s is not supported on objects of type %(tname)s."""
 
838
    def __init__(self, method, method_self):
 
839
        self.method = method
 
840
        self.mname = method.__name__
 
841
        self.tname = type(method_self).__name__