~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-22 15:33:16 UTC
  • mto: This revision was merged to the branch mainline in revision 6404.
  • Revision ID: jelmer@samba.org-20111222153316-logw4b3xd4g1zqi7
Add ParseFormatError.

Show diffs side-by-side

added added

removed removed

Lines of Context:
763
763
        self.bzrdir = bzrdir_format
764
764
 
765
765
 
 
766
class ParseFormatError(BzrError):
 
767
 
 
768
    _fmt = "Parse error on line %(lineno)d of %(format)s format: %(line)s"
 
769
 
 
770
    def __init__(self, format, lineno, line, text):
 
771
        BzrError.__init__(self)
 
772
        self.format = format
 
773
        self.lineno = lineno
 
774
        self.line = line
 
775
        self.text = text
 
776
 
 
777
 
766
778
class IncompatibleRepositories(BzrError):
767
779
    """Report an error that two repositories are not compatible.
768
780